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 23:53:48
Message-Id: 4A2DA437.2070501@gmail.com
In Reply to: Re: [gentoo-user] Finding orphaned libs by Neil Bothwick
1 Neil Bothwick wrote:
2 > On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote:
3 >
4 >
5 >> Is there an easy way to detect the orphaned libs on and old machine
6 >> who's install dates back to 2004? The only idea I can come up with is
7 >>
8 >> for I in /usr/lib/*.so.* ; do equery belongs $I ; done
9 >>
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 >
23
24 Questions: You knew I subscribed to this list. lol I ran the command:
25
26 find -H /usr/lib /lib -type f | xargs qfile -o
27
28 and I got a lot of hits. I'm just going to post snippets of the
29 directories here. It is a LONG list otherwise.
30
31 /usr/lib/gimp/2.0/plug-ins/
32 /usr/lib/perl5/site_perl/5.8.8/i486-linux/sys/
33 /usr/lib/python2.5/site-packages/dbus/
34 /usr/lib/python2.5/site-packages/Numeric/
35 /usr/lib/python2.5/site-packages/PyQt4/uic/
36 /usr/lib/python2.5/site-packages/Pyrex/Plex/
37 /usr/lib/portage/pym/
38
39 Some of those directories have additional directories in them but I
40 tried to hit the highlights. Now to my questions. Can these be
41 deleted? Should one make certain these doesn't belong to some package
42 somewhere? Should I update my backups BEFORE deleting these? o_O
43
44 If you want the whole list, let me know. Be forewarned tho, it is a
45 huge list even if I leave out the kernel sources for my old trusty 2.6.23.
46
47 Thanks much.
48
49 Dale
50
51 :-) :-)

Replies

Subject Author
Re: [gentoo-user] Finding orphaned libs Willie Wong <wwong@××××××××××××××.edu>