pkgsrc (package source) is a package management system for Unix-likeoperating systems. It was forked from the FreeBSD ports collection in 1997 as the primary package management system for NetBSD. Since then it has evolved independently; in 1999, support for Solaris was added, followed by support for other operating systems.[3]
There are multiple ways to install programs using pkgsrc. The pkgsrc bootstrap contains a traditional ports collection that utilizes a series of makefiles to compile software from source. Another method is to install pre-built binary packages via the pkg_add and pkg_delete tools. A high-level utility named pkgin also exists, and is designed to automate the installation, removal, and update of binary packages in a manner similar to Debian's Advanced Packaging Tool.[7]
On October 3, 1997, NetBSD developers Alistair Crooks and Hubert Feyrer created pkgsrc[1] based on the FreeBSD ports system and intended to support the NetBSD packages collection. It was officially released as part of NetBSD 1.3[8] on January 4, 1998. DragonFly BSD used pkgsrc as its official package system from version 1.4 in 2006, to 3.4 in 2013.[9][3]
On 2017-09-12, a commit message policy that accommodates DVCS was established by the project.[10]
Packages
The NetBSD Foundation provides official, pre-built binary packages for multiple combinations of NetBSD and pkgsrc releases, and occasionally for certain other operating systems as well.[11]
As of 2018, several vendors provide pre-built binary packages for several platforms:
Since at least 2014,[12]Joyent has provided binary packages for SmartOS/illumos, macOS,[5] and Enterprise Linux (CentOS/Oracle/Red Hat/Scientific).[4][12] Packages are provided on a rolling release basis from the trunk (HEAD, in CVS terminology) of pkgsrc, with updates every few days;[5] additionally, quarterly stable releases of pkgsrc for Joyent's own SmartOS are also provided (dating back to 2012Q4).[13]