Bootstrapping pkgsrc

pkgsrc can be bootstrapped for use in two different modes: privileged and unprivileged one. In unprivileged mode in contrast to privileged one all programs are installed under one particular user and cannot utilise privileged operations (packages don’t create special users and all special file permissions like setuid` are ignored).

This documentation focuses on unprivileged mode.

To bootstrap in unprivileged mode in a specific prefix, run:

cd /path/to/pkgsrc/bootstrap
./bootstrap --prefix /path/to/prefix  --unprivileged --make-jobs 4

The prefix is the base directory where pkgsrc installs all managed packages. It serves as a separate root file system hierarchy specifically for packages installed using pkgsrc.