pkgsrc: The NetBSD Packages Collection

|
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
Pre-compiled binaries for supported platformsThe pkgsrc downloads
|
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!
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.
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.
![[NetBSD Logo]](/images/NetBSD-headerlogo.png)