Unix Technical Forum

/usr/portage/distfiles & /var/tmp/portage

This is a discussion on /usr/portage/distfiles & /var/tmp/portage within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello, as I was reading the newsgroup, I came across following post of Johan Lindquist of 04/01/05: <cite> Before ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:39 AM
Kristof
 
Posts: n/a
Default /usr/portage/distfiles & /var/tmp/portage

Hello,

as I was reading the newsgroup, I came across following post of Johan
Lindquist of 04/01/05:

<cite>
Before you do that, make sure to clean out /usr/portage/distfiles and
/var/tmp/portage. I can't really see how you'd manage to run out of
disk unless you're stockpiling distfiles or keeping workdirs around.
</cite>

Is it really totally harmless to delete everything in these directories
and, if so, is it possible to prevent the system to stack all these
files there?

Regards,

Kristof.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:39 AM
Xenofon
 
Posts: n/a
Default Re: /usr/portage/distfiles & /var/tmp/portage

Kristof wrote:

> Hello,
>
> as I was reading the newsgroup, I came across following post of Johan
> Lindquist of 04/01/05:
>
> <cite>
> Before you do that, make sure to clean out /usr/portage/distfiles and
> /var/tmp/portage. I can't really see how you'd manage to run out of
> disk unless you're stockpiling distfiles or keeping workdirs around.
> </cite>
>
> Is it really totally harmless to delete everything in these directories
> and, if so, is it possible to prevent the system to stack all these
> files there?
>
> Regards,
>
> Kristof.


Yes it is safe, but I'm wondering if there's a way to delete all but the
latest versions of distfiles. Sometimes it is useful keeping several
versions around, but usually it's just a waste of time.
Any suggestions?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:39 AM
Andy Fraser
 
Posts: n/a
Default Re: /usr/portage/distfiles & /var/tmp/portage

In alt.os.linux.gentoo, Xenofon uttered the immortal words:

> Yes it is safe, but I'm wondering if there's a way to delete all but the
> latest versions of distfiles. Sometimes it is useful keeping several
> versions around, but usually it's just a waste of time.
> Any suggestions?


One of these might help:
<http://gentooexperimental.org/script/repo/search?category%5B0%5D=cleaners&srch=true&categori es_mod%5B0%5D=is>

There are other scripts and techniques mentioned here:
<http://forums.gentoo.org/viewtopic.php?t=3011>

--
Andy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:39 AM
J.O. Aho
 
Posts: n/a
Default Re: /usr/portage/distfiles & /var/tmp/portage

Xenofon wrote:

> Yes it is safe, but I'm wondering if there's a way to delete all but the
> latest versions of distfiles. Sometimes it is useful keeping several
> versions around, but usually it's just a waste of time.
> Any suggestions?


You can emerge tmpwatch and add the two directories to the list of directories
that would be watched, you can set in the tmpwatch how old a file should be
before deleted.

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 09:39 AM
Graham Murray
 
Posts: n/a
Default Re: /usr/portage/distfiles & /var/tmp/portage

"J.O. Aho" <user@example.net> writes:

> You can emerge tmpwatch and add the two directories to the list of
> directories that would be watched, you can set in the tmpwatch how
> old a file should be before deleted.


But for distfiles it is not the age of the file which is important, it
is whether it is the latest version.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com