From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MDp06-0006yb-0g for garchives@archives.gentoo.org; Tue, 09 Jun 2009 00:15:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 359EBE0406; Tue, 9 Jun 2009 00:15:36 +0000 (UTC) Received: from Princeton.EDU (postoffice06.Princeton.EDU [128.112.133.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 131BBE0406 for ; Tue, 9 Jun 2009 00:15:36 +0000 (UTC) Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id n590FZXj001471 for ; Mon, 8 Jun 2009 20:15:35 -0400 (EDT) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id n590FZDf017311 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Mon, 8 Jun 2009 20:15:35 -0400 (EDT) Received: by sep.dynalias.net (Postfix, from userid 1001) id ACECF13F736; Mon, 8 Jun 2009 20:18:16 -0400 (EDT) Date: Mon, 8 Jun 2009 20:18:16 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Finding orphaned libs Message-ID: <20090609001816.GA28479@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <200906082244.18324.alan.mckinnon@gmail.com> <20090608215408.3c4b4c91@krikkit.digimed.co.uk> <4A2DA437.2070501@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A2DA437.2070501@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 1801dced-6a38-4ff3-a4e3-225d814c58c5 X-Archives-Hash: ae3c57c3f3950a16c2428e886ea4ec15 On Mon, Jun 08, 2009 at 06:52:23PM -0500, Penguin Lover Dale squawked: > Questions: You knew I subscribed to this list. lol I ran the command: > > find -H /usr/lib /lib -type f | xargs qfile -o > > and I got a lot of hits. I'm just going to post snippets of the > directories here. It is a LONG list otherwise. > > /usr/lib/gimp/2.0/plug-ins/ > /usr/lib/perl5/site_perl/5.8.8/i486-linux/sys/ > /usr/lib/python2.5/site-packages/dbus/ > /usr/lib/python2.5/site-packages/Numeric/ > /usr/lib/python2.5/site-packages/PyQt4/uic/ > /usr/lib/python2.5/site-packages/Pyrex/Plex/ > /usr/lib/portage/pym/ > > Some of those directories have additional directories in them but I > tried to hit the highlights. Now to my questions. Can these be > deleted? Should one make certain these doesn't belong to some package > somewhere? Should I update my backups BEFORE deleting these? o_O Depends if you do have those packages installed. Numeric is from dev-python/numeric, for example. Also, be careful when you parse the output of the command. Most of the .pyc and .pyo files in the python2.5 directories are byte-compiled version that python generated dynamically the first time they are used. For example: ..../Numeric/numeric_version.py was installed by the ebuild and thuse qfile tells me it belongs to dev-python/numeric, but .../Numeric/numeric_version.pyc is listed as an "orphan". While it is safe to delete, it will just be regenerated again later, wasting computing cycles. Ditto for some of the files in the perl directory. W -- I am not a physics major. I am not a physics major. I will never be a physics major. I never will want to be a physics major. I can never be a physics major. ~Daniel Jonathan Peng Sortir en Pantoufles: up 913 days, 22:59