Skip to main content.

pkgsrc: The NetBSD Packages Collection

BSD daemon

About pkgsrc

The NetBSD Packages Collection (pkgsrc) is a framework for building third-party software on NetBSD and other UNIX-like systems, currently containing over 6400 packages. It is used to enable freely available software to be configured and built easily on supported platforms.

Latest stable branch: pkgsrc-2007Q1

Latest news

07 May 2007 - Package binaries for NetBSD/sparc64 4.0_BETA2 / pkgsrc-2007Q1

Havard Eidnes has announced that pkgsrc-2007Q1 4.0_BETA2 binary packages for the sparc64 port are now available, and have been uploaded to ftp://ftp.NetBSD.org/pub/pkgsrc/packages-2007Q1/NetBSD-4.0/sparc64/. Please use a mirror site close to you.

19 Apr 2007 - pkgsrc-2007Q1 has been branched

The pkgsrc developers are proud to announce the new pkgsrc-2007Q1 branch. At the same time, the pkgsrc-2006Q4 branch has been deprecated, and continuing engineering starts on the pkgsrc-2007Q1 branch.

The source tar files for the new branch can be found at:

You can also use the pkgsrc-2007Q1 tag to check it out yourself from anoncvs.NetBSD.org or any of the mirrors.

Please see the detailed pkgsrc-2007Q1 announcement in Alistair G. Crooks's email to the pkgsrc-users mailing list for more information.

18 Mar 2007 - Binary packages for NetBSD/sparc64 3.0 updated

Julian Coleman has announced that updated packages from a bulk build of pkgsrc-2006Q4 on NetBSD/sparc64 3.0.2 are now available at: ftp://ftp.NetBSD.org/pub/pkgsrc/packages-2006Q4/NetBSD-3.0/sparc64/

The packages were built from sources updated on February 16, 2007. 1352 packages were built in this update.

02 Feb 2007 - pkgsrcCon 2007: call for presentations

The fourth annual pkgsrcCon will convene in Barcelona, Spain on Apr 27 - 29, 2007. pkgsrcCon is a technical conference focusing on the technology and the use of the NetBSD Packages Collection

A call for presentations has been announced, inviting developers and users to give talks about pkgsrc-related topics at the conference. More information about pkgsrcCon 2007 is available at http://www.pkgsrccon.org/2007/.


Pre-compiled binaries for supported platforms
The pkgsrc downloads

Documentation

Supported platforms

pkgsrc consists of both a Source distribution and a Binary distribution for these operating systems. After retrieving the required source or binaries, you can be up and running with pkgsrc in just minutes!

Table 1. Platforms supported by pkgsrc

Platform Date Support Added
NetBSD Aug 1997
Solaris Mar 1999
Linux Jun 1999
Darwin (Mac OS X) Oct 2001
FreeBSD Nov 2002
OpenBSD Nov 2002
IRIX Dec 2002
BSD/OS Dec 2003
AIX Dec 2003
Interix (Microsoft Windows Services for Unix) Mar 2004
DragonFlyBSD Oct 2004
OSF/1 Nov 2004
HP-UX Apr 2007

Binary distribution

We provide a bootstrap kit in both source and binary form for other platforms than NetBSD, consisting of the pkg administration tools and other tools required to use pkgsrc and build packages.

Note

Older binary snapshots are available in the bootstrap-pkgsrc/archive directory on ftp.NetBSD.org.

Table 2. Binary kits and available packages

Platform Latest snapshot Binary kit Binary packages
Darwin 5.5/powerpc (Mac OS X 10.1.5) 20021209 binary kit  
Darwin 6.6/powerpc (Mac OS X 10.2.6) 20030623 binary kit  
Darwin 7.6/powerpc (Mac OS X 10.3.6) 20041219 binary kit binary packages
Darwin 7.8/powerpc (Mac OS X 10.3.8) 20050320 binary kit  
Darwin 8.1/powerpc (Mac OS X 10.4.1) 20050625 binary kit binary packages
Debian GNU Linux/i386 20031023 binary kit  
Fedora Core 2 Linux/i386 20050618 binary kit  
Fedora Core 4 Linux/i386 20060105 binary kit  
FreeBSD 3.5/i386 20030411 binary kit  
FreeBSD 4.7/i386 20021211 binary kit  
FreeBSD 5.0/i386 20030411 binary kit  
FreeBSD 5.1/i386 20030630 binary kit  
FreeBSD 5.2.1/i386 20040227 binary kit  
FreeBSD 5.3/i386 20050119 binary kit  
HP-UX 11.11/hppa 20070425 binary kit  
Interix 3.5 20061106 binary kit  
IRIX 6.5 n32-bit ABI 20040911 binary kit binary packages
IRIX 6.5 64-bit ABI 20040912 binary kit binary packages
OpenBSD 3.2/i386 20030420 binary kit  
OpenBSD 3.3/i386 20030503 binary kit  
OpenBSD 3.5/i386 20040703 binary kit  
OSF1 5.1/alpha 20070420 binary kit  
Slackware Linux 8.1/i386 20030417 binary kit  
Slackware Linux 9/i386 20040703 binary kit  
Solaris 8/sparc 20050220 binary kit  
Solaris 8/i386 20050220 binary kit  
Solaris 9/sparc 20060713 binary kit  
Solaris 9/i386 20030411 binary kit  

Simply download the binary kit for your platform, and extract it into / e.g.

# cd /
# gzip -c -d /tmp/bootstrap-pkgsrc-SunOS-5.9-sparc-20031023.tar.gz \
  | tar -xpf -

Of course, as with any binary distributions, you should verify the checksum against the SUM or CKSUM file and inspect the contents before extracting it.

Source distribution

You can download the pkgsrc tarball or checkout the latest sources using AnonCVS:

# cvs checkout -rpkgsrc-2007Q1 pkgsrc

(for using AnonCVS service, see Tracking NetBSD-current).

After downloading and/or extracting the sources, installing the bootstrap kit should be as simple as:

# cd pkgsrc/bootstrap
# ./bootstrap

This will use the defaults of /usr/pkg for the prefix and /var/db/pkg for the package database directory. However, these can also be set using command-line parameters (use ./bootstrap --help to see the available options).

Note that when using pkgsrc on a non-NetBSD system, use the bmake command instead of “make” to run the NetBSD make, which is required for correct pkgsrc operation. Simply substitute “bmake” for “make” in pkgsrc documentation.