Home » Odeon Blogs » Calvin, Weaver »

Macports House Cleaning

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.

  1. calvin$ sudo du -sh /opt
  2. Password:
  3. 8.4G /opt
  4. calvin$ sudo port clean --all installed
  5. calvin$ sudo port -f uninstall inactive
  6. calvin$ sudo du -sh /opt
  7. 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


Tagged as: macports

Discussion

  1. beppu on Mar 04, 2012 - 12:13 said:

    This cleared up a few hundred megabytes of disk space for me. Thanks for the tip.


  2. 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


  3. Nice tuts indeed, thanks for your help :) Mac is the best computer I ever have.




Leave a Comment :

(required)


(required)




(required)




(required)






Leave a Comment


Page generated in: 0.19s