pkgsrc logo

Portable Package Management

pkgsrc is a framework for building over 20,000 open source software packages. It is the native package manager on SmartOS, NetBSD, and Minix, and is portable across 23 different operating systems. Use one package manager across all of your systems!

Joyent provide binary packages for SmartOS/illumos, macOS, and Linux.

Bootstrap From Source

1. Fetch pkgsrc

pkgsrc is primarily distributed using CVS, however there are git mirrors if you prefer.

2. Perform bootstrap

Use the bootstrap script to build a set of pkg tools under a specific prefix.

: To get the latest pkgsrc-2017Q2 branch with CVS.  If you want to get pkgsrc
: trunk (the very latest code), leave off the -r argument.
$ cvs -d co -rpkgsrc-2017Q2 -P pkgsrc

: Or with git.  Check out the latest branch, or stay on master for the latest.
$ git clone
$ cd pkgsrc
$ git checkout pkgsrc-2017Q2
: To build a pkgsrc installation in your home directory.
$ cd pkgsrc/bootstrap
$ ./bootstrap --prefix=${HOME}/pkg
$ PATH=${HOME}/pkg/sbin:${HOME}/pkg/bin:${PATH}
$ MANPATH=${HOME}/pkg/man:${MANPATH}

: Bootstrap has many options, use --help to show them.
$ ./bootstrap --help