Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Short cut for unmerging all packages that are not longer in the tree
Date: Thu, 22 Oct 2009 14:32:26
Message-Id: hbpord$gut$1@ger.gmane.org
In Reply to: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree by Helmut Jarausch
1 On 10/22/2009 02:14 PM, Helmut Jarausch wrote:
2 > Hi,
3 >
4 > is there an easy way to unmerge all packages which are no longer in
5 > the current portage tree.
6 > (Those make problems on update world)
7 >
8 > Many thanks for a hint,
9 > Helmut.
10
11 Quick 'n dirty one-liner:
12
13 for f in $(qlist -IC); do stat /usr/portage/"$f" > /dev/null; done
14
15 For packages not in the tree, you will get something like:
16
17 stat: cannot stat `/usr/portage/x11-themes/foobar': No such file
18 or directory
19
20 meaning that x11-themes/foobar is not in the tree. Of course this
21 doesn't check overlays.