Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cleaning up space used by portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
briansrapier
n00b
n00b


Joined: 05 May 2005
Posts: 22
Location: Inwood, WV, USA

PostPosted: Fri Dec 15, 2006 7:12 pm    Post subject: Cleaning up space used by portage Reply with quote

I'm trying to recover some disk space on one of my boxes and I noticed that a majority of the space is being occupied by /usr/portage/distfiles.

What is safe to remove and what isn't?
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Fri Dec 15, 2006 7:17 pm    Post subject: Re: Cleaning up space used by portage Reply with quote

briansrapier wrote:
I'm trying to recover some disk space on one of my boxes and I noticed that a majority of the space is being occupied by /usr/portage/distfiles.

What is safe to remove and what isn't?


Code:
rm -rf /usr/portage/distfiles/*


Is fine.
Back to top
View user's profile Send private message
shrimp123
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 199
Location: Here!

PostPosted: Fri Dec 15, 2006 7:18 pm    Post subject: Reply with quote

remove disfiles

then also

look at sqfs+unionfs of portage tree?

<search forums for it>

S
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2671
Location: here, there or in transit

PostPosted: Fri Dec 15, 2006 7:23 pm    Post subject: Reply with quote

Removing all distfiles won't harm your system but is mildly discouraged, since the files will be downloaded again if you re-merge any packages. This is an unnecessary load on the mirrors.

This particular horse has been beaten to death in the forums, resurrected, shot, resurrected, beaten some more, flayed, resurrected, cloned, napalmed and then beaten once more. Most of the many options are discussed in this thread; search for "clean distfiles," "clean stale distfiles" and such to find lots more. eclean (part of gentoolkit) is my personal favorite, fwiw.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
shrimp123
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 199
Location: Here!

PostPosted: Fri Dec 15, 2006 7:29 pm    Post subject: Reply with quote

sorry to revive a shot-dead-*.*-horse, but

distfiles are useful only if u emerge -uDp very often and that too, if the new version is a patched set.

i normally update once a month and most packages just dwnld the newest version, -even if- there is a patch available and the older version is on disk. (i know we can all live with kernel 2.2 and abt 2 million patches!)

so, removing distfiles is ok, unless u plan on re-emerge/update often.

S
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Sat Dec 16, 2006 11:18 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
See https://forums.gentoo.org/viewtopic.php?t=3011
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum