On 10/22/2009 02:14 PM, Helmut Jarausch wrote:
Hi,
is there an easy way to unmerge all packages which are no longer in
the current portage tree.
(Those make problems on update world)
Many thanks for a hint,
Helmut.
Quick 'n dirty one-liner:
for f in $(qlist -IC); do stat /usr/portage/"$f" > /dev/null; done
For packages not in the tree, you will get something like:
stat: cannot stat `/usr/portage/x11-themes/foobar': No such file
or directory
meaning that x11-themes/foobar is not in the tree. Of course this
doesn't check overlays.