pkgsrc is a framework for building third-party software on a multitude of platforms, including (but not limited to): FreeBSD, Linux, macOS, and NetBSD.

pkg_comp is a tool for building and maintaining a repository of binary pkgsrc packages. pkg_comp does this by building the packages in a clean and self-contained environment, hiding all complexity behind a simple command and configuration file. pkg_comp makes it even possible to automate the builds of packages from cron so that you always have an up-to-date local repository.

pkg_comp orchestrates VCS tools such as CVS and Git to fetch the initial pkgsrc tree and to keep it up to date; the creation of a fresh sandbox to build packages in; the pkgsrc bootstrapping process; and the use of the pbulk infrastructure to build the desired set of packages in an optimal manner.

With pkg_comp, you can quickly and effortlessly get third-party software up and running, and you can target both your own machine or other machines with different configurations. As you build the packages from source, pkgsrc puts you in control by letting you tune the software to your needs.

pkg_comp’s history is a long one. pkg_comp 1.0 first appeared on September 6th, 2002 as the pkgtools/pkg_comp package in pkgsrc and the major 2.0 rewrite was published on February 17th, 2017 with support for various platforms and a more robust codebase.

Related blog posts