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, Linux, and NetBSD.
Install on NetBSD
Packages are built on the latest development
version of NetBSD/amd64 (currently 9.99.75)
from pkgsrc trunk and updated every day.
Note some important differences to other NetBSD
All packages are signed, and /usr/pkg/sbin/pkg_add will refuse to install
any unsigned packages (configured with VERIFIED_INSTALLATION=always set in
The bootstrap kit bundles /etc/openssl/certs/ containing certificates installed
from the security/mozilla-rootcerts package, ensuring HTTPS will work without requiring any
Both CHECK_OSABI and CHECK_OS_VERSION are set to no,
improving compatibility of the packages across minor releases of NetBSD-current.
The aim is to provide a repository that, for most users, will just work out of the box.
If you have any requests for changes, please raise an issue
Now that you're ready to go, here are some common commands you may want to run.
Use pkgin to install packages
pkgin is the front-end to the binary packages, and lets you search for, install, upgrade, and remove packages. It also provides some basic functionality for querying both local and remote packages. If you have used apt-get or yum you should find it to be very familiar.
Use pkg_* tools to manage packages
The underlying packaging tools are pkg_add, pkg_admin, pkg_create, pkg_delete, and pkg_info. If pkgin is equivalent to apt-get or yum, then these are the equivalent of dpkg or rpm. Here are some useful commands to get you started.