Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Finding orphaned libs
Date: Mon, 08 Jun 2009 22:11:57
Message-Id: 200906090010.22562.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Finding orphaned libs by Neil Bothwick
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

Replies

Subject Author
Re: [gentoo-user] Finding orphaned libs Dale <rdalek1967@×××××.com>