Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] unmerge meta packages problems
Date: Sat, 25 Mar 2006 18:10:38
Message-Id: 7573e9640603251001v29c51faft84989333c0c4d6c@mail.gmail.com
In Reply to: [gentoo-user] unmerge meta packages problems by Constantine Kardaris
1 On 3/25/06, Constantine Kardaris <ckardaris@×××××.com> wrote:
2 > Hi,
3 >
4 > i'd like to ask you if it's possible to unmerge the dependencies of a
5 > meta package that installed automatic but have recorded in world file
6 > after a while.
7 > For example, i want to unmerge gnome-light but many dependencies have
8 > already re-emerged without oneshot option and have recorded in world
9 > file. So "emerge -C gnome-light || emerge --depclean" does not help anymore.
10
11 You can find packages in world that are dependant upon something else
12 you have installed with a script like this:
13
14 for pkg in `cat /var/lib/portage/world` ; do
15 count=`equery depends $pkg | grep / | wc -l`
16 test "$count" -gt 0 && echo $pkg
17 done
18
19 You can then just remove these packages manually from world, and
20 depclean will work correctly if you remove any of the dependencies.
21
22 -Richard
23
24 --
25 gentoo-user@g.o mailing list