- 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)