Skip to content

Instantly share code, notes, and snippets.

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
# 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