1 |
On Monday 08 June 2009 22:54:08 Neil Bothwick wrote: |
2 |
> On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: |
3 |
> > Is there an easy way to detect the orphaned libs on and old machine |
4 |
> > who's install dates back to 2004? The only idea I can come up with is |
5 |
> > |
6 |
> > for I in /usr/lib/*.so.* ; do equery belongs $I ; done |
7 |
> |
8 |
> qfile --orphans /usr/lib/*.so.* |
9 |
> |
10 |
> or, maybe cleaner |
11 |
> |
12 |
> qfile --orphans $(find -H /usr/lib /lib -type f) |
13 |
> |
14 |
> which avoids checking all the symlinks. |
15 |
> |
16 |
> Then run symlinks remove any dangling links left over. |
17 |
|
18 |
Thanks, that's just the biscuit :-) |
19 |
|
20 |
I really need to start using those q* commands. After 5 years on gentoo, I |
21 |
reckon it's about time... |
22 |
|
23 |
-- |
24 |
alan dot mckinnon at gmail dot com |