IT lexicon › Infra & Ops › pkg (FreeBSD)

pkg (FreeBSD)

Infra & Ops På svenska → Updated: 2026-11-08

FreeBSD's binary package manager since 2014, which replaced the old pkg_add tools and made prebuilt packages the default.

During development it was called pkgng, for "next generation", with Baptiste Daroussin as lead author. The old pkg_* tools had barely any dependency handling and no real upgrade path. pkg instead keeps its package database in SQLite, resolves dependencies, verifies signatures and handles upgrades with pkg upgrade. With FreeBSD 10 in 2014 it became the only option.

The base system ships only a small bootstrap stub, /usr/sbin/pkg, which fetches and installs the real thing the first time it runs. Packages are built from the ports tree, usually with poudriere, so anyone needing custom build options can run a repository of their own. DragonFly BSD uses pkg as well, making it the BSD family's closest answer to APT.

← Back to the lexicon