Skip to content

Instantly share code, notes, and snippets.

@dewaka
Created August 28, 2017 14:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dewaka/1bc7eea1844855356f9d0a1bc14cf032 to your computer and use it in GitHub Desktop.
Save dewaka/1bc7eea1844855356f9d0a1bc14cf032 to your computer and use it in GitHub Desktop.
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