On Thursday 22 October 2009 15:58:17 Jesús Guerrero wrote:
> > depclean only removes packages that it knows for a fact are no longer
> > needed. 
> > This means
> > 
> > - not in world
> > - not linked to by anything
> > - not depended on by anything
> > 
> > "not in the tree" is not part of that list. If you have a package in
> 
> world 
> 
> > that is not in the tree anymore, depclean will leave it as is. It will
> > remove 
> > ancient mere deps that are somehow still lying around though
> 
> Yep, if the package is in world, delclean will not help.
> 
> You could always do it the bash way. I have no idea if there's any tool
> out there that will make this easier, but it's simple enough to script it,
> something like this should work:
> 
> qlist -I --nocolor | while read pkg; do
>   if [ ! -d "/var/portage/$pkg" ]; then
>     echo "$pkg is not in portage"
>   fi
> done
> 
> This will not catch overlays, but it could be easily extended to do so,
> it's just a generic (and untested) example. It should work I guess. It just
> dumps the list of installed packages, then tries to find a dir with the
> same name under your portage directory and if it doesn't exist then the
> package name is printed.
> 


The best place for this would be 

equery orphan <params>

or similar. I'm sure the maintainer will gratefully accept patches :-)

-- 
alan dot mckinnon at gmail dot com

Reply via email to