The Lumber Room

"Consign them to dust and damp by way of preserving them"

MacPorts guide

leave a comment »

Installing: Easiest is to just get the .pkg installer and run it. After it’s done, you should edit your .{bash,zsh}rcs and put


They recommend adding these paths at the front; I prefer adding them at the end.
At some point you might want to make changes to MacPorts itself; when that happens you can easily switch to using MacPorts from SVN, with

svn co

then cd to base and do the usual

sudo make install

Staying updated (like apt-get update): Do

sudo port -v selfupdate

regularly. There is no need to do “port sync”.

Staying upgraded (like apt-get dist-upgrade): Do

sudo port -u upgrade


Changing individual ports: This is the best part about MacPorts: if some package (“port”) is not working properly, it’s very easy to simply fix it. One way is to just edit the corresponding “portfile” directly — try port file pidgin to see which Portfile to edit — but that will be overwritten the next time you update. The better way is to set up a local Portfile repository. To do this, edit /opt/local/etc/macports/sources.conf and add something like


before rsync:// This directory should contain the Portfiles just as in the Macports tree, e.g. it should have /Users/julesverne/ports/net/pidgin/Portfile if you’re going to be changing Pidgin’s portfile.


Written by S

Sun, 2009-01-11 at 15:58:28

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s