Macports House Cleaning
Once in a while, it helps to do some house cleaning to keep your Mac OS clean and lean.
If you are using MacPorts to manage your open source software packages and libraries, a problem you might notice is that MacPorts tend not to uninstall old versions of downloaded ports. This probably means that over time, you would have accumulated a bunch of outdated and older versions of software packages and libraries on your machine.
Let's see how I can clean up my act and remove these outdated software packages.
- calvin$ sudo du -sh /opt
- Password:
- 8.4G /opt
-
- calvin$ sudo port clean --all installed
-
- calvin$ sudo port -f uninstall inactive
-
- calvin$ sudo du -sh /opt
- 5.6G /opt
Not too bad - 2.8 GB of outdated open source packages and libraries removed! Nice little trick to add to your MacPorts maintenance tips and tricks. :-)
Category: Python



Discussion
This cleared up a few hundred megabytes of disk space for me. Thanks for the tip.
Great tip for freeing up space.
I started with 5.1GB.
sudo port clean --all installed
This one saved me 0.5 GB
sudo port -f uninstall inactive
And this one another 0.3 GB
Nice tuts indeed, thanks for your help :) Mac is the best computer I ever have.
Leave a Comment :
Leave a Comment