pkgsrc is used to build third-party software. This page describes how to use pkgsrc.
Before diving in, you should be aware of a few things:
We have currently the following manually maintained lists:
To retrieve the current official repository, type the following as root:
# cd /usr # make pkgsrc
To build software, you will also need to install the development tools, a.k.a the following packages:
# pkgin install bmake gmake binutils clang
<!> This is all that is needed to prepare the system to build software with pkgsrc. The MINIX installation comes pre-bootstrapped. Do NOT run the bootstrap script that comes with pkgsrc.
To update the pkgsrc tree in the future:
# cd /usr # make pkgsrc-update
This will download any changes (new versions of packages, patches, etc.).
<!> It is important to update your copy of the pkgsrc tree using this method, instead of git pull. This update method may perform additional steps, such as updating your mk.conf file.
All pkgsrc operations should be done with bmake.
To build a package, misc/figlet in this example, you need to cd to that directory and do a bmake install.
# cd /usr/pkgsrc/misc/figlet # bmake install
This installs figlet in /usr/pkg/bin.
See the official pkgsrc guide for complete details.
If you wish to contribute fixes and patches to pkgsrc, please see HowToContribute.