On Monday 08 June 2009 22:54:08 Neil Bothwick wrote:
> On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote:
> > Is there an easy way to detect the orphaned libs on and old machine
> > who's install dates back to 2004? The only idea I can come up with is
> >
> > for I in /usr/lib/*.so.* ; do equery belongs $I ; done
>
> qfile --orphans /usr/lib/*.so.*
>
> or, maybe cleaner
>
> qfile --orphans $(find -H /usr/lib /lib -type f)
>
> which avoids checking all the symlinks.
>
> Then run symlinks remove any dangling links left over.

Thanks, that's just the biscuit :-)

I really need to start using those q* commands. After 5 years on gentoo, I 
reckon it's about time...

-- 
alan dot mckinnon at gmail dot com

Reply via email to