public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cleaning up world
Date: Tue, 19 May 2009 20:09:28 +0200	[thread overview]
Message-ID: <200905192009.28716.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <20090519173201.GA15468@crowfix.com>

On Tuesday 19 May 2009 19:32:01 felix@crowfix.com wrote:
> In a previous thread, I learned about keeping world simple with
> --oneshot.  I realized how mine had gotten so bloated -- when I
> update, I edit the --pretend output and feed that directly into
> emerge without the benefit of --oneshot.
>
> So today I started a cleanup project.  I began by moving world to
> world-bloated and running emerge --depclean -p just to see what would
> happen.  The answer is ... a loop!
>
> There were a couple of missing or out of date packages and I emerged
> them.  But libusb has to be 10.6 to make some packages happy and 10.7
> to satisfy others.
>
> I have been down this route before.  I don't feel like unmerging
> either side of the mess, and even if I didn't want the packages, it is
> way too much hassle to unmerge them one by one as the list of unhappy
> packages grows.
>
> So, what is the proper way to recreate a proper world file?  If
> depclean can finally run one of these days when gentoo gets back in
> sync, is staring with an empty world file as good as anything else?
> The idea of trying to make intelligent guesses about which packages
> are truly top level, out of 3000+ packages, is not enticing.

Step 1 is to make sure the machine is up to date - emerge -avuND world
Otherwise you are trying to take things out and portage is trying to put 
things in - confusing. Then satisfy the blockers like that issue with libusb, 
but chances are emerge world fixed that already.

Edit the world file and remove every version number in that file if present. 
You don;t need it and portage is infinitely better at tracking it than you 
are. Then remove everything with a category ending in "lib", these rarely need 
to be in world.

Periodically run emerge -av --depclean adding things back to world that you do 
want - it's a rinse and repeat process.

If you use kde and gnome, I'll bet you have every package listed. Remove them 
all and add kde-meta or gnome back in (or maybe the @kde set if you use that). 
Let portage worry about dependencies.

By now you should be getting the idea that there's no easy way to recreate a 
minimum world file from an existing system. eix-test-obsolete looks like it 
ought to do this, but unfortunately doesn't.

-- 
alan dot mckinnon at gmail dot com



  parent reply	other threads:[~2009-05-19 18:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-19 17:32 [gentoo-user] Cleaning up world felix
2009-05-19 17:55 ` Volker Armin Hemmann
2009-05-19 18:25   ` felix
2009-05-19 18:35     ` Daniel Pielmeier
2009-05-19 19:31     ` Volker Armin Hemmann
2009-05-20 14:24       ` Paul Hartman
2009-05-28 15:31       ` Valmor de Almeida
2009-05-28 15:38         ` Mark Knecht
2009-05-19 18:09 ` Alan McKinnon [this message]
2009-05-21 22:11   ` Mick
2009-05-21 22:23     ` Paul Hartman
2009-05-22  6:49     ` Alan McKinnon
2009-05-19 18:10 ` Neil Bothwick
2009-05-19 18:16 ` Daniel Iliev
2009-05-19 18:21 ` Stroller

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=200905192009.28716.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --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