Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Deleting fetched packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
oshman
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2005
Posts: 124
Location: Houston, TX

PostPosted: Thu Aug 04, 2005 1:04 am    Post subject: Deleting fetched packages Reply with quote

I did a bunch of --fetchonly emerges and was wondering how to delete the packages after they've been compiled.

Any help appreciated.
_________________
Fujitsu Lifebook S6520 Core 2 Duo
Back to top
View user's profile Send private message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Thu Aug 04, 2005 1:12 am    Post subject: Reply with quote

Theres two directories that portage uses for temp files, $BUILD_PREFIX and $DISTDIR. I believe the defaults are /var/tmp/portage and /usr/portage/distfiles.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Thu Aug 04, 2005 4:50 am    Post subject: Reply with quote

The default location for the files you downloaded is /usr/portage/distfiles

For every file you want to remove just do "rm /usr/portage/distfiles/filename"

Though I usually just leave my distfiles directory alone. Lots of times an updated version of some program uses the same source code file but an updated ebuild so if I remove the file then later it'll download the whole thing again.
Back to top
View user's profile Send private message
TheCool
n00b
n00b


Joined: 03 Jul 2002
Posts: 8
Location: Tampa, FL

PostPosted: Thu Aug 04, 2005 7:03 am    Post subject: Reply with quote

Following along with this thread, I was wondering if there is a way to have emerge automatically delete the source from /usr/portage/distfiles when its done with the emerge.

I have many gentoo boxes on my network so I run a local rsync and I cache all the distfiles on one server, so even if I have to redownload everytime I upgrade or rebuild the package, its coming down at LAN speeds.

Since I have so many gentoo boxes on the network there is no reason to have 12 copies of a distfile, you think?[/url]
Back to top
View user's profile Send private message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Thu Aug 04, 2005 12:33 pm    Post subject: Reply with quote

I don't think emerge can do that but I have two suggestions for you, TheCool. emerge tmpwatch and try that out, I put it on crontab to cleanup these directories as such:

05 3 * * * /usr/sbin/tmpwatch -u -s -v 168 /var/tmp/portage
15 3 * * * /usr/sbin/tmpwatch -u -s -v 168 /var/tmp/distfiles

That will delete anything older than 7 days.

The other suggestion is if you have so many gentoo machines on a LAN why not nfs mount your $DISTDIR?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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