pkgsrc logo

Portable Package Management

pkgsrc is a framework for building over 17,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, Mac OS X, 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-2014Q4 branch with CVS.  If you want to get pkgsrc
: trunk (the very latest code), leave off the -r argument.
$ cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot co -rpkgsrc-2014Q4 -P pkgsrc

: Or with git
$ git clone https://github.com/jsonn/pkgsrc.git

: Check out the pkgsrc_2014Q4 branch, or stay on master for the latest code.
$ cd pkgsrc
$ git checkout pkgsrc_2014Q4
: 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