Skip to content

Instantly share code, notes, and snippets.

@karbassi
Created November 11, 2009 20:02
Show Gist options
  • Save karbassi/232244 to your computer and use it in GitHub Desktop.
Save karbassi/232244 to your computer and use it in GitHub Desktop.
Install macports on mac.
# Move to tmp directory
cd $TMPDIR
# Download version 1.8.1 of MacPorts
curl -OL http://distfiles.macports.org/MacPorts/MacPorts-1.8.1.tar.gz
# Untar it
tar xzvf MacPorts-1.8.1.tar.gz
# Open it
cd MacPorts-1.8.1
# Configure, make, and install it
./configure && make && sudo make install
# Remove MacPorts' install files.
cd ../
rm -rf MacPorts-1.8.1*
# Update to latest versions
sudo port selfupdate
sudo port -d sync
sudo portindex
sudo port upgrade installed
# Install default files
sudo port install git-core +doc +gitweb +svn +bash_completion
sudo port install watch
sudo port install tree
sudo port install mtr
sudo port install imagemagick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment