I use MacPorts to install add-ons for my Mac in an isolated way from the core OS. This is the routine I go through to keep my ports up to date and as lean as possible.
I typically run updates once a month, and this is the procedure I use.
The first thing is to update MacPorts itself:
sudo port selfupdate
I keep older versions of ports around for one update revision in case I need to roll back, so let’s remove those inactive ports.
sudo port uninstall inactive
Are any leaves that we can get rid of1:
port echo leaves
To uninstall the leaves:
sudo port uninstall leaves
Now we can upgrade our ports:
sudo port upgrade outdated
And you’re all set until the next update.
-
http://guide.macports.org/#using.common-tasks. You can mark certain ports as requested, preventing them from being reported as leaves, i.e.:
sudo port -d setrequested autoconf help2man p5-locale-gettext m4 automake libtool pkgconfig↩
-
mintyfresh posted this