public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  pruning /usr/portage/distfiles/
@ 2005-07-21 16:22 James
  2005-07-21 16:31 ` David Morgan
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: James @ 2005-07-21 16:22 UTC (permalink / raw
  To: gentoo-user

Hello,

/usr is the only partion I seem to have trouble filling up. After
poking around I've decided to 'prune' /usr/portage/distfiles.

Before automating this action, via crontab, I'm soliciting
any other, slicker/cooler/better method to auto prune
/usr/portage/distfiles.

What I have done manually is:
EMOVING LARGE FILES IN /usr/protage/distfiles:
find ./ -size +100000  -exec ls -lag {} \; | less       
<lists large files>
find ./ -size +100000 -print -exec rm {} \;     
<prints & removes large files>
again:
find ./ -size +50000  -exec ls -lag {} \; | less
find ./ -size +50000  -print -exec rm {} \;
again:
find ./ -size +20000  -exec ls -lag {} \; | less
find ./ -size +20000  -print -exec rm {} \;

REMOVING OLD FILES IN /usr/protage/distfiles:
find ./ -mtime +180 -exec ls -lag {} \; | less
find ./ -mtime +180 -print -exec rm {} \;

Running these commands manually caused the 
/usr/  dir to reduce from 88% full to 55% full.

Looking at the proposed lists of files to be removed, gave
me some confidence that it was OK to remove the files.
Suggestions as to better logic that I could integrate
into a script is welcome.

Before  hacking these commands into a script, I'd be interested 
in comments and ideas....(a better mouse trap?) better logic, 
like progressively running the commands unti the disk space 
threshold is below 60% full or something.


James

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-22 17:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-21 16:22 [gentoo-user] pruning /usr/portage/distfiles/ James
2005-07-21 16:31 ` David Morgan
2005-07-21 17:30   ` [gentoo-user] " James
2005-07-21 16:43 ` [gentoo-user] " Rumen Yotov
2005-07-21 17:29   ` [gentoo-user] " James
2005-07-21 17:33 ` [gentoo-user] " Zac Medico
2005-07-21 21:33 ` Andreas Prieß
2005-07-21 21:59 ` Octavio Ruiz (Ta^3)
2005-07-22 17:24   ` [gentoo-user] " James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox