These 3 commands will check for new ports, upgrade outdated ports, and remove older versions.
- sudo port selfupdate
- sudo port upgrade outdated
- sudo port uninstall inactive
To make sure you have a slimmed down install, use port_cutleaves to remove unnecessary ports. There are often “Build Dependencies” (like autoconf, automake, libtool, m4, help2man, p5-locale-gettext) that are no longer needed after a package is installed.
- sudo port install port_cutleaves
- sudo port_cutleaves (I run this a couple of times)
[…] Update: This link might help you, it’s a cheat sheet. http://www.jbmurphy.com/2011/02/17/my-mac-ports-cheat-sheet/ […]