|Developer(s)||Alistair Crooks, Hubert Feyrer and Johnny C. Lam|
|Initial release||January 4, 1998|
|Stable release||2018Q4 (31 December 2018[±])|
|Written in||C, Unix shell|
|Type||Package management system|
pkgsrc (package source) is a package management system for Unix-like operating 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.
pkgsrc currently contains over 22,000 packages and includes most popular open-source software. It is the native package manager on NetBSD, SmartOS and MINIX 3, and is portable across 23 different operating systems, including AIX, various BSD derivatives, HP-UX, IRIX, Linux, macOS, Solaris, and QNX.
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.
|Darwin and macOS||October 2001|
|Interix (for Windows NT)||March 2004|
|DragonFly BSD||October 2004|
|MINIX 3||August 2010|
|illumos and SmartOS||February 2011|
On October 3, 1997, NetBSD developers Alistair Crooks and Hubert Feyrer created pkgsrc based on the FreeBSD ports system and intended to support the NetBSD packages collection. It was officially released as part of NetBSD 1.3 on January 4, 1998. DragonFly BSD used pkgsrc as its official package system from version 1.4 in 2006, to 3.4 in 2013.
As of 2018, several vendors provide pre-built binary packages for several platforms:
- Since at least 2014, Joyent has provided binary packages for SmartOS/illumos, macOS, and Enterprise Linux (CentOS/Oracle/Red Hat/Scientific). Packages are provided on a rolling release basis from the trunk (HEAD, in CVS terminology) of pkgsrc, with updates every few days; additionally, quarterly stable releases of pkgsrc for Joyent's own SmartOS are also provided (dating back to 2012Q4).
- Since 2017, University of Wisconsin–Milwaukee has provided binary packages for NetBSD, RHEL/CentOS, and Darwin/macOS. Packages are only built from the quarterly releases of pkgsrc, aiding use in long-term experiments, where stability and reproducibility of the findings is of the essence.
- "10 years of pkgsrc - pkgsrc and the concepts of package management 1997-2007 (part 1)". www.netbsd.org. The NetBSD Foundation. Retrieved 14 October 2010.
- "Joyent Packages Documentation - Install On Linux". Joyent. Retrieved 2018-10-10.
- "Joyent Packages Documentation - Install On macOS". Joyent. Retrieved 2018-10-10.
- Perkin, Jonathan (2018-10-05). "Announcing the pkgsrc-2018Q3 release". NetBSD. Retrieved 2018-10-10.
- "pkgin, a binary package manager for pkgsrc".
- "Information about NetBSD 1.3".
- Dillon, Matthew (2005-08-31). "PKGSRC will be officially supported as of the next release". DragonFly users mailing list.
- "Joyent's packages, available for SmartOS/illumos, Linux, and OSX". Archived from the original on 2014-07-15. Retrieved 2018-10-11.
- "Re: Pkgsrc binary packages now available for scientific computing". pkgsrc-users (Mailing list). NetBSD. 2017-08-01. Retrieved 2018-10-13.
- "mirror1.hpc.uwm.edu/pkgsrc/". Retrieved 2018-10-11.
- "Software Management". University of Wisconsin–Milwaukee, High Performance Computing dept. Retrieved 2018-10-11.
- Official website
- A web interface for pkgsrc
- pkgsrc-wip – a project to get more people actively involved with pkgsrc
- pkgsrcCon: An annual conference focusing on pkgsrc
- pkgsrc binary packages for SmartOS/illumos, macOS and Linux from Joyent
- /r/pkgsrc on Reddit