Space used in /opt/local/var/macports

Scott Webster sewebster at gmail.com
Fri Jun 18 23:13:49 PDT 2010


On Fri, Jun 18, 2010 at 11:00 PM, Michael_google gmail_Gersten
<keybounce at gmail.com> wrote:
> How much of /opt/local/var/macports can be cleaned up?
>
> Kleiman-ibook:macports michael$ du -s *
> 29716   build
> 497644  distfiles
> 0       logs
> 0       packages
> 12      port-help.tcl
> 4540    receipts
> 0       registry
> 2241476 software
> 92544   sources
>
> That's over 2 gig in software, and half a gig in distfiles.
>

You can use "port clean" to get rid of some stuff.  Read the man page
for details.  For instance, "port clean --all installed" will get rid
of a bunch of stuff, including distfiles.  But the "software" you
presumably want to keep, since those are the ports you installed!  The
active ones are hardlinked into /opt/local (not using more space).
Read more in the guide (http://guide.macports.org).

You may want to also uninstall inactive ports ("port uninstall
inactive") and you can automatically get rid of the old versions when
you upgrade by using "port upgrade -u outdated".  There's a bunch of
stuff on this in the list archives too... you could search for it for
some more discussion.

Scott


More information about the macports-users mailing list