public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] pruning distfiles
       [not found] <200701041915.26732.uwix@iway.na>
@ 2007-01-04 18:18 ` Stuart Howard
       [not found]   ` <200701042031.50074.uwix@iway.na>
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart Howard @ 2007-01-04 18:18 UTC (permalink / raw
  To: gentoo-user

On 04/01/07, Uwe Thiem <uwix@iway.na> wrote:
> Hi folks,
>
> just went through /usr/portage/distfiles and deleted what I though was
> outdated - a major PITA. There must be a better way!
>
> Slight complication: My portage tree is used by different boxes with different
> world files.
>
> Uwe
>
> --
> A fast and easy generator of fractals for KDE:
> http://www.SysEx.com.na/iwy-1.0.tar.bz2
> Proof of concept of a TSP solver for KDE:
> http://www.SysEx.com.na/epat-0.1.tar.bz2
> --
> gentoo-user@gentoo.org mailing list
>
>
I use this as a cron
00 6 11 * * /usr/bin/eclean-dist -fd

There is an option to use an "exclude file" prehaps you could make a
little script run on a cron to make one file from your various worlds
and use that as the exclude.

good luck
stu

-- 
"There are 10 types of people in this world: those who understand
binary, those who don't"

--Unknown
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] pruning distfiles
       [not found]   ` <200701042031.50074.uwix@iway.na>
@ 2007-01-04 20:21     ` Boyd Stephen Smith Jr.
  0 siblings, 0 replies; 2+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-01-04 20:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1778 bytes --]

On Thursday 04 January 2007 12:31, Uwe Thiem <uwix@iway.na> wrote 
about 'Re: [gentoo-user] pruning distfiles':
> On 04 January 2007 20:18, Stuart Howard wrote:
> > On 04/01/07, Uwe Thiem <uwix@iway.na> wrote:
> > > Hi folks,
> > >
> > > just went through /usr/portage/distfiles and deleted what I though
> > > was outdated - a major PITA. There must be a better way!
> > >
> > > Slight complication: My portage tree is used by different boxes with
> > > different world files.

My roommate and I also have a shared distfiles.  We clean daily by placing 
the following script in /etc/cron.daily:
#!/bin/sh

if [ -x /usr/bin/eclean ]; then
        # If you want you can also add a grace period,
        # so files downloaded within
        # the last week (e.g.) will not be deleted.
        /usr/bin/eclean -q distfiles
else
        echo 'eclean not found in expected location; not cleaning 
distfiles.' >2
        exit 1
fi

> > I use this as a cron
> > 00 6 11 * * /usr/bin/eclean-dist -fd
> eclean-dist was the one I couldn't remember.
>
> Having had a brief look at eclean-dist, I don't think it uses the world
> file but the database of installed packages.

Non-destructive mode uses the portage tree (that is, if any existent ebuild 
could use the file, it stays).  IIRC, this includes overlays, but may not 
include installed packages no longer in the tree.

Destructive mode does use the database of installed packages, so it won't 
remove anything needed by the ebuild(s) you currently have installed.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-01-04 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200701041915.26732.uwix@iway.na>
2007-01-04 18:18 ` [gentoo-user] pruning distfiles Stuart Howard
     [not found]   ` <200701042031.50074.uwix@iway.na>
2007-01-04 20:21     ` Boyd Stephen Smith Jr.

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