MacPorts: Update port definitions and upgrade installed ports
Once in a while is good to update your software to get advantage of the latest bug fixes and new features. This is very easy to do with MacPorts:
$ sudo port selfupdate
$ sudo port upgrade outdated
You can then remove all the non active ports:
$ sudo port uninstall inactive
And clean all the files used to build the ports:
$ sudo port clean --all all