Gentoo Archives: gentoo-user

From: Willie Wong <wwong@××××××××××××××.edu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Finding orphaned libs
Date: Tue, 09 Jun 2009 00:15:38
Message-Id: 20090609001816.GA28479@princeton.edu
In Reply to: Re: [gentoo-user] Finding orphaned libs by Dale
1 On Mon, Jun 08, 2009 at 06:52:23PM -0500, Penguin Lover Dale squawked:
2 > Questions: You knew I subscribed to this list. lol I ran the command:
3 >
4 > find -H /usr/lib /lib -type f | xargs qfile -o
5 >
6 > and I got a lot of hits. I'm just going to post snippets of the
7 > directories here. It is a LONG list otherwise.
8 >
9 > /usr/lib/gimp/2.0/plug-ins/
10 > /usr/lib/perl5/site_perl/5.8.8/i486-linux/sys/
11 > /usr/lib/python2.5/site-packages/dbus/
12 > /usr/lib/python2.5/site-packages/Numeric/
13 > /usr/lib/python2.5/site-packages/PyQt4/uic/
14 > /usr/lib/python2.5/site-packages/Pyrex/Plex/
15 > /usr/lib/portage/pym/
16 >
17 > Some of those directories have additional directories in them but I
18 > tried to hit the highlights. Now to my questions. Can these be
19 > deleted? Should one make certain these doesn't belong to some package
20 > somewhere? Should I update my backups BEFORE deleting these? o_O
21
22 Depends if you do have those packages installed. Numeric is from
23 dev-python/numeric, for example.
24
25 Also, be careful when you parse the output of the command. Most of the
26 .pyc and .pyo files in the python2.5 directories are byte-compiled
27 version that python generated dynamically the first time they are
28 used. For example: ..../Numeric/numeric_version.py was installed by
29 the ebuild and thuse qfile tells me it belongs to dev-python/numeric,
30 but .../Numeric/numeric_version.pyc is listed as an "orphan". While it
31 is safe to delete, it will just be regenerated again later, wasting
32 computing cycles.
33
34 Ditto for some of the files in the perl directory.
35
36 W
37 --
38 I am not a physics major. I am not a physics major. I will never be a physics
39 major. I never will want to be a physics major. I can never be a physics
40 major. ~Daniel Jonathan Peng
41 Sortir en Pantoufles: up 913 days, 22:59

Replies

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