public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Daniel Pielmeier <billie@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Remove redundant entries in "world" - howto
Date: Wed, 8 Dec 2010 17:20:12 +0100	[thread overview]
Message-ID: <AANLkTi=Zc6WMW0vk2rTvWEKCn5-BaHTwyKgYgddR71D_@mail.gmail.com> (raw)
In-Reply-To: <1291807409.5304.6@numa-i>

Helmut Jarausch <jarausch@igpm.rwth-aachen.de>:
> Hi,
>
> does anybody know about an easy method to remove all entries from
> /var/lib/portage/world
> which would have been pulled in anyway
> even if they were not contained in world.
>
> My current attempt would be to write a script
> which executes emerge -vpc on each entry in world.
> If it wouldn't be removed it's obsolete in world.
>
> Unfortunately this has to be done in several rounds.

As far as I know there is currently no tool available for something like this.

I have a skript which runs emerge -pv --depclean for every entry in
world. If depclean returns reverse dependencies the package in
question is redundant in world. It takes quite some time but works
reliable. There are false positives for packages with PDEPENDS, but
you will recognize this when "emerge -pv --depclean" wants to remove
packages which you want to keep afterwards and you can add them back
manually.

Another method would be removing the world file (backup before) and
run the regenworld script afterwards. The result is not really minimal
so there will still be redundant entries.

I asked the portage maintainer about such a tool, as it would be best
if it uses the portage API to speed things up. He didn't not see the
point of such a script but thought about writing something which
creates a minimal word file. If you want such a functionality I
recommend to open a bug about it.

-- 
Daniel Pielmeier



  parent reply	other threads:[~2010-12-08 16:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 11:23 [gentoo-user] Remove redundant entries in "world" - howto Helmut Jarausch
2010-12-08 13:40 ` Matthew Summers
2010-12-08 15:22   ` Helmut Jarausch
2010-12-08 16:11     ` Alan McKinnon
2010-12-08 19:30     ` Neil Bothwick
2010-12-08 15:57 ` Mark Knecht
2010-12-08 16:11   ` Albert Hopkins
2010-12-08 16:28     ` Stroller
2010-12-08 17:27       ` Albert Hopkins
2010-12-08 18:19       ` Kevin O'Gorman
2010-12-08 18:33         ` Sebastian Beßler
2010-12-08 18:18     ` Helmut Jarausch
2010-12-08 16:20 ` Daniel Pielmeier [this message]
2010-12-08 22:42 ` Johannes Kimmel
2010-12-15 18:24   ` Pau Peris
2010-12-21  5:30     ` Frank Steinmetzger

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='AANLkTi=Zc6WMW0vk2rTvWEKCn5-BaHTwyKgYgddR71D_@mail.gmail.com' \
    --to=billie@gentoo.org \
    --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