Setting up or using pkgsrc


Do you want to use binary packages or build those from the pkgsrc tree?

If you want binary you may have to check online whether there are builds for the latest release yet, OR NOT.

To me, it looks like NOT only the MAJOR release version matters, but ALSO THE MINOR. For example mail/alpine did not run on NetBSD 7.1.2 although it was built for 7.0 ( not found).

export PATH=/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin:/bin:/sbin:/usr/bin:/usr/sbin:$HOME/bin
export PASSIVE_FTP=yes

from source

cd /usr/
ls -lhF | grep pkgsrc
progress -zf pkgsrc.tar.gz tar xf -

In case the tree is too recent compared to your system,

cd /usr/pkgsrc/bootstrap/