news

02 December 2020 - pkgsrc database directory changed

The pkgsrc default database location on NetBSD has changed from /var/db/pkg to ${PREFIX}/pkgdb, i.e. /usr/pkg/pkgdb.

This does not affect other operating systems that already were set up using the bootstrap script. This script already defaulted to ${PREFIX}/pkgdb.

Please update your pkg_install files. Either update to the latest NetBSD-current, or do update your pkgsrc to -current and do:

cd /usr/pkgsrc/pkgtools/pkg_install
make USE_CWRAPPERS=no install
install -c /usr/pkg/sbin/pkg_* /usr/sbin

The pkg_install tools will inform you about the database move and tell you to

mv /var/db/pkg ${PREFIX}/pgkdb

If this works for you, stop reading here.

If you don't want to update the tools in /usr/sbin, please make sure that you are using only one version of pkg_install, i.e. that ${PREFIX}/sbin is early enough in the path, so you don't mix using tools that expect /var/db/pkg with those expecting ${PREFIX}/pkgdb.

The daily cron jobs on NetBSD use full paths. They can be changed by adding

pkg_admin=/usr/pkg/sbin/pkg_admin
pkg_info=/usr/pkg/sbin/pkg_info

to /etc/pkgpath.conf

If you want to postpone the change, you can add

PKG_DBDIR=/var/db/pkg

to your mk.conf before rebuilding pkgsrc/pkgtools/pkg_install.

09 October 2020 - pkgsrc-2020Q3 released

The pkgsrc developers are proud to announce the pkgsrc-2020Q3 branch, the 68th pkgsrc release.

See the release announcement for more information.

30 June 2020 - pkgsrc-2020Q2 released

The pkgsrc developers are proud to announce the pkgsrc-2020Q2 branch, the 67th pkgsrc release.

See the release announcement for more information.

06 April 2020 - pkgsrc-2020Q1 released

The pkgsrc developers are proud to announce the pkgsrc-2020Q1 branch, the 66th pkgsrc release.

See the release announcement for more information.

06 January 2020 - pkgsrc-2019Q4 released

The pkgsrc developers are proud to announce the pkgsrc-2019Q4 branch, the 65th pkgsrc release.

See the release announcement for more information.

pkgsrc is a framework for building third-party software on NetBSD and other UNIX-like systems, currently containing over 22,500 packages. It is used to enable freely available software to be configured and built easily on our 23 supported platforms.

The binary packages that are produced by pkgsrc can be used without having to compile everything from source. NetBSD already contains the necessary tools for managing binary packages; on other platforms you need to bootstrap pkgsrc to get the package management tools installed.

Available packages indexed by category
Complete list of all packages

quickstart

install binary packages (NetBSD)

PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -m)/$(uname -r|cut -f '1 2' -d.)/All/"
export PKG_PATH
pkg_add tmux

install binary packages (SmartOS/illumos, Mac OS X, Linux)

Binary package sets for SmartOS/illumos, Mac OS X, and Linux are available from Joyent. Head to http://pkgsrc.joyent.com/ where you will find full installation instructions.

bootstrap

cvs -danoncvs@anoncvs.netbsd.org:/cvsroot checkout pkgsrc
cd pkgsrc/bootstrap
./bootstrap

build a package

cd pkgsrc/devel/memcached
make install clean

start packaging yourself

Take a look at pkgsrc-wip if you want to contribute by packaging software yourself!

docs

The comprehensive pkgsrc guide

pkgsrc-users mailing list: archives | subscribe

#pkgsrc is on freenode

There is a pkgsrc section on the NetBSD wiki. (Note that it is currently mostly a (useful) collection of HOWTOs, and that perhaps some of the content should migrate into the pkgsrc guide.)

get pkgsrc

get t-shirts

supported platforms

security

For getting the latest package vulnerabilities database and checking your installed packages against it, use

pkg_admin fetch-pkg-vulnerabilities
pkg_admin audit

The vulnerabilities database and package EOL database are both signed with the pkgsrc-security GPG key.

A hardening guide is also available.

information for developers

other links