How to cleanup macports

After few years of using macports I think, that they have a huge size on my HDD. And i start to look for simple way to cleanup local repositories of macports and commands to flush and purge inactive/unused ports.
Five useful terminal commands to cleanup ports.

Remove leftover build files (this is done automatically by default):

Remove download files:

Remove archives (these aren’t created by default):

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.