public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Boyd Stephen Smith Jr." <bss03@volumehost.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] pruning distfiles
Date: Thu, 4 Jan 2007 14:21:08 -0600	[thread overview]
Message-ID: <200701041421.20297.bss03@volumehost.net> (raw)
In-Reply-To: <200701042031.50074.uwix@iway.na>

[-- 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 --]

      parent reply	other threads:[~2007-01-04 20:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200701041421.20297.bss03@volumehost.net \
    --to=bss03@volumehost.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox