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.


-- 
Neil Bothwick

It may be that your sole purpose in life is simply to serve as a
warning to others.

Attachment: signature.asc
Description: PGP signature

Reply via email to