how to remove distfiles etc. (short of disk space on a laptop)

View: New views
4 Messages — Rating Filter:   Alert me  

how to remove distfiles etc. (short of disk space on a laptop)

by Darren Weber-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


We have a laptop that is very short on disk space.  There is a bunch of stuff lying around in:
/opt/local/var/macports/distfiles/
/opt/local/var/macports/build/
/opt/local/var/macports/packages/darwin/i386/*.tbz2

One way to clean up is to run the following:
sudo rm -rf /opt/local/var/macports/distfiles/*
sudo rm -rf /opt/local/var/macports/build/*
sudo rm -rf /opt/local/var/macports/packages/*

Are there any problems with that?  Is it preferable to use a port command to cleanup all of this?

Is it still true that activation entails hard-links from:
/opt/local/var/macports/software
into
/opt/local
If so, it would be a disaster to run (right?):
sudo rm -rf /opt/local/var/macports/software/*


TIA,
Darren


_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Re: how to remove distfiles etc. (short of disk space on a laptop)

by Jochen Küpper-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 06.11.2009, at 19:30, Darren Weber wrote:

> We have a laptop that is very short on disk space.  There is a bunch  
> of stuff lying around in:

It would be a start to run
   port clean –-all all

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Re: how to remove distfiles etc. (short of disk space on a laptop)

by Darren Weber-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Fri, Nov 6, 2009 at 11:32 AM, Jochen Küpper <kuepper.jochen@...> wrote:
On 06.11.2009, at 19:30, Darren Weber wrote:

We have a laptop that is very short on disk space.  There is a bunch of stuff lying around in:

It would be a start to run
 port clean –-all all


There are some warnings, like:

--->  Cleaning arm-aout-binutils
Warning: Distfiles directory '/opt/local/var/macports/
distfiles/binutils' may contain distfiles needed for other ports, use the -f flag to force removal



_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Re: how to remove distfiles etc. (short of disk space on a laptop)

by Ryan Schmidt-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 6, 2009, at 12:30, Darren Weber wrote:

> We have a laptop that is very short on disk space.  There is a bunch  
> of stuff lying around in:
> /opt/local/var/macports/distfiles/
> /opt/local/var/macports/build/
> /opt/local/var/macports/packages/darwin/i386/*.tbz2
>
> One way to clean up is to run the following:
> sudo rm -rf /opt/local/var/macports/distfiles/*

This is perfectly fine; I remove old distfiles from here by hand all  
the time, as needed.

> sudo rm -rf /opt/local/var/macports/build/*

You can do this, but any incomplete builds probably left a "work"  
symlink in the port's directory (unless you turned off that feature in  
macports.conf). In this case, you can either remove those symlinks by  
hand (or use a "find" construct to nuke them all), or you can "sudo  
port clean" the affected ports instead.

> sudo rm -rf /opt/local/var/macports/packages/*

I don't use packages so I'm not experienced with this directory. I  
believe we may have discussed recently that removal of old packages  
got broken in MacPorts 1.8.0.

> Is it still true that activation entails hard-links from:
> /opt/local/var/macports/software
> into
> /opt/local

Yes, unless you've turned on "direct mode" in macports.conf. I don't  
recommend you do that though.

> If so, it would be a disaster to run (right?):
> sudo rm -rf /opt/local/var/macports/software/*

Yes, that would not be a good idea. It also wouldn't save you any  
space, except for ports which are not active. The better way to  
reclaim the space used by inactive ports would be to "sudo port  
uninstall inactive".


_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users