Houto cleanup mac ports

Did you use mac ports, and after each update your ports are getting bigger and bigger ? Do you want to cleanup a few hundred of MB ? This is how you do it!

In order to see what is installed on your machine

port installed

to checkout the last version of the ports from the repository

sudo port -v selfupdate

howto update the ports

sudo port upgrade outdated

now to clean all the old version

sudo port clean --all installed