Forked from daggerok/install-mac-ports-no-root.bash
Last active
October 12, 2022 20:31
-
-
Save gwhammett/3d025d015a57c11ccd43706694beb74c to your computer and use it in GitHub Desktop.
Install MacPorts 2.5.3 without sudo / root privileges
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
# install | |
mkdir ~/macports | |
cd ~/macports | |
curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.7.2.tar.bz2 | |
tar xf MacPorts-2.7.2.tar.bz2 | |
cd MacPorts-2.7.2 | |
./configure --enable-readline --prefix=$HOME/macports --with-no-root-privileges | |
make && make install | |
# bash / zsh | |
echo "export MACPORTS_HOME=\$HOME/macports" >> ~/.bash_profile | |
echo "export PATH=\$MACPORTS_HOME/bin:\$MACPORTS_HOME/sbin" >> ~/.bash_profile | |
# fish | |
echo "set -gx MACPORTS_HOME \$HOME/macports" >> ~/.config/fish/config.fish | |
echo "set -gx PATH \$MACPORTS_HOME/bin \$MACPORTS_HOME/sbin" >> ~/.config/fish/config.fish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If someone has time to reproduce this bug and report it to macports, that would be helpful. I have to do other things.