Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Finding orphaned libs
Date: Mon, 08 Jun 2009 22:58:21
Message-Id: 4A2D974A.3090207@gmail.com
In Reply to: Re: [gentoo-user] Finding orphaned libs by Alan McKinnon
1 Alan McKinnon wrote:
2 > On Monday 08 June 2009 22:54:08 Neil Bothwick wrote:
3 >
4 >> On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote:
5 >>
6 >>> Is there an easy way to detect the orphaned libs on and old machine
7 >>> who's install dates back to 2004? The only idea I can come up with is
8 >>>
9 >>> for I in /usr/lib/*.so.* ; do equery belongs $I ; done
10 >>>
11 >> qfile --orphans /usr/lib/*.so.*
12 >>
13 >> or, maybe cleaner
14 >>
15 >> qfile --orphans $(find -H /usr/lib /lib -type f)
16 >>
17 >> which avoids checking all the symlinks.
18 >>
19 >> Then run symlinks remove any dangling links left over.
20 >>
21 >
22 > Thanks, that's just the biscuit :-)
23 >
24 > I really need to start using those q* commands. After 5 years on gentoo, I
25 > reckon it's about time...
26 >
27 >
28
29 Careful, it will end up like etcat and the rest. You learn them and
30 start to use them, then they go away and you have to start over again.
31
32 Dale
33
34 :-) :-)