View previous topic :: View next topic |
Author |
Message |
oshman Tux's lil' helper
Joined: 29 Jun 2005 Posts: 124 Location: Houston, TX
|
Posted: Thu Aug 04, 2005 1:04 am Post subject: Deleting fetched packages |
|
|
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 |
|
|
plut0 Apprentice
Joined: 21 Dec 2004 Posts: 272
|
Posted: Thu Aug 04, 2005 1:12 am Post subject: |
|
|
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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Aug 04, 2005 4:50 am Post subject: |
|
|
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 |
|
|
TheCool n00b
Joined: 03 Jul 2002 Posts: 8 Location: Tampa, FL
|
Posted: Thu Aug 04, 2005 7:03 am Post subject: |
|
|
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 |
|
|
plut0 Apprentice
Joined: 21 Dec 2004 Posts: 272
|
Posted: Thu Aug 04, 2005 12:33 pm Post subject: |
|
|
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 |
|
|
|