Created
August 28, 2017 14:26
-
-
Save dewaka/1bc7eea1844855356f9d0a1bc14cf032 to your computer and use it in GitHub Desktop.
Install pkgsrc on Linux as non-root user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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