Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install pkgsrc on Linux as non-root user
#!/usr/bin/env sh
mkdir ~/build
cd ~/build
# get the current version
wget http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.gz
# unpack
tar xvf pkgsrc.tar.gz
# bootstrap
export SH=$(which bash)
cd pkgsrc/bootstrap
./bootstrap --unprivileged
# Add ~/pkg/bin and ~/pkg/sbin to PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment