Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Install dependencies

Code Block
$# pfexec pkg install cvs build-essential

...

Set Specify your preferred location, preferable /opt/PKGSRC You can specify a different path

Code Block
$# mkdir -p /opt/PKGSRC/{usr/bin,usr/sbin}pkg && PKGSRC_OPT_PATH='/optusr/PKGSRCpkg'; $ export PATH=$PKGSRC/bin:$PKGSRC/sbin:$PATH
# cd $PKGSRC_OPT_PATH; export CVS_RSH=ssh; cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot co pkgsrc

The authenticity of host 'anoncvs.netbsd.org (199.233.217.198)' can't be established.
RSA key fingerprint isSHA256:oeLj1lbu1HBb/Mc2ERoP11g8JDFnrHWvSvPTXOu9bXw.

Code Block
$# cd $PKGSRC_OPT_PATH/pkgsrc/bootstrap
$# ./bootstrap $&& ./cleanup
$# export PATH=$PKGSRC_OPT_PATH/usr/bin:$PKGSRC_OPT_PATH/usr/sbin:$PATH
 
Examples install nano
$# cd $PKGSRC/opt/PKGSRC/pkgsrc/*/nano
$# bmake install clean

OR

Code Block
$# echo 'PKGSRC="/usr/pkg"; export PATH=$PKGSRC_OPT_PATH/usr/bin:$PKGSRC_OPT_PATH/usr/sbin:$PATH"' >> $HOME/.profile
 
Examples install nano
$# cd $PKGSRC/opt/PKGSRC/pkgsrc/*/nano
$# bmake install clean