The most recent pkgsrc release is
2014Q3. Follow the instructions for your
SmartOS images come pre-installed with packages and are ready to go, you only
pkgin install additional packages as required. The version of the
image denotes which branch of pkgsrc is installed:
13.2.x a different versioning scheme was used. To see which release
of pkgsrc an older image uses, refer to the contents of
There are three different package sets available for illumos, 32-bit, 64-bit, and multiarch (32-bit packages with additional 64-bit libraries and support).
The packages are designed to be self-contained, avoiding operating system dependencies where possible. This allows them to be generic across all illumos distributions.
Pick only ONE of the package sets below.
: 32-bit $ curl -s http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2014Q3-i386.tar.gz | gzcat | (cd /; sudo tar -xpf -) : 64-bit $ curl -s http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2014Q3-x86_64.tar.gz | gzcat | (cd /; sudo tar -xpf -) : Multiarch $ curl -s http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2014Q3-multiarch.tar.gz | gzcat | (cd /; sudo tar -xpf -)
For all package sets, add
$ PATH=/opt/local/sbin:/opt/local/bin:$PATH $ MANPATH=/opt/local/man:$MANPATH
Packages for OS X are built on Snow Leopard (10.6) so that they are forward compatible with all current versions of OS X. Currently only 32-bit packages are available.
: Download and install the bootstrap containing pkgin and the packaging tools $ curl -s http://pkgsrc.joyent.com/packages/Darwin/bootstrap/bootstrap-2014Q3-i386.tar.gz | sudo tar -zxpf - -C / : Packages are kept under /usr/pkg, add to $PATH and $MANPATH $ PATH=/usr/pkg/sbin:/usr/pkg/bin:$PATH $ MANPATH=/usr/pkg/man:$MANPATH
Packages are available for RHEL6-derived distributions, i.e. RHEL, CentOS, Oracle Linux, etc.
: Download and install the bootstrap containing pkgin and the packaging tools $ curl -s http://pkgsrc.joyent.com/packages/Linux/bootstrap/bootstrap-2014Q2-el6-x86_64.tar.gz | sudo tar -zxpf - -C / : Packages are kept under /usr/pkg, add to $PATH and $MANPATH $ PATH=/usr/pkg/sbin:/usr/pkg/bin:$PATH $ MANPATH=/usr/pkg/man:$MANPATH
Installing, updating, and removing packages is done using the
This is designed to function similar to
apt-get from Debian/Ubuntu. The most
common functions are listed below - see the manual page for further
: Fetch the latest repository metadata. $ sudo pkgin -y update : List available packages $ pkgin avail : Search for packages $ pkgin search tmux : Install a package $ sudo pkgin -y install tmux : Upgrade all packages $ sudo pkgin -y full-upgrade