Thursday, November 27, 2008

Keeping MacPorts clean

In a previous post, I wrote about how to clean up your installation of MacPorts. After haveing gone through the steps previously described, it might be a good idea to keep your installation of MacPorts clean.

It turns out that there is a way to keep the installation clean all the time. If you run the command


sudo port -nuf upgrade outdated


in a command shell, MacPorts will uninstall any outdated versions of any packaged it upgrades. We do need to force (-f) the installation, as MacPorts believes that you need the old versions. When checking for dependencies, it does not take the version into account. Since we are installing a new version, this is OK.

0 comments: