Thursday, November 18, 2010

macports removing old bits

I noticed lots of duplication when I looked at my installed ports using the command,

$ port list installed


I needed to clean out the old builds. First I needed to see the old builds using the command:

$ port installed


Then remove the old bits using the following commands:

$ sudo port clean --all installed
$ sudo port -f uninstall inactive


use $ du -sh /opt to get the size of the /opt directory before and after removal of ports.

Based on information in the blogpost at cleaning-up-macports

Before I install new packages, or update, I like to update macports itself, and then update outdated packages.

$ sudo port selfupdate
$ sudo port upgrade outdated

No comments:

Post a Comment