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 1MDoGh-0007O2-OX for garchives@archives.gentoo.org; Mon, 08 Jun 2009 23:28:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27E5BE03E3; Mon, 8 Jun 2009 23:28:42 +0000 (UTC) Received: from Princeton.EDU (postoffice04.Princeton.EDU [128.112.131.112]) by pigeon.gentoo.org (Postfix) with ESMTP id 077D6E03E3 for ; Mon, 8 Jun 2009 23:28:42 +0000 (UTC) Received: from smtpserver1.Princeton.EDU (smtpserver1.Princeton.EDU [128.112.129.65]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id n58NSfrC019883 for ; Mon, 8 Jun 2009 19:28:41 -0400 (EDT) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver1.Princeton.EDU (8.12.9/8.12.9) with ESMTP id n58NSf2s028166 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Mon, 8 Jun 2009 19:28:41 -0400 (EDT) Received: by sep.dynalias.net (Postfix, from userid 1001) id B465F64AFE6; Mon, 8 Jun 2009 19:31:22 -0400 (EDT) Date: Mon, 8 Jun 2009 19:31:22 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Finding orphaned libs Message-ID: <20090608233122.GA30512@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <200906082244.18324.alan.mckinnon@gmail.com> <20090608215408.3c4b4c91@krikkit.digimed.co.uk> 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: <20090608215408.3c4b4c91@krikkit.digimed.co.uk> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 3f44f10e-960c-4f4f-b806-9ebd5ae13031 X-Archives-Hash: 55cd501c2d69b0012d7b62b5610b1442 On Mon, Jun 08, 2009 at 09:54:08PM +0100, Penguin Lover Neil Bothwick squawked: > On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: > > > Is there an easy way to detect the orphaned libs on and old machine > > who's install dates back to 2004? The only idea I can come up with is > > > > for I in /usr/lib/*.so.* ; do equery belongs $I ; done > > qfile --orphans /usr/lib/*.so.* > > or, maybe cleaner > > qfile --orphans $(find -H /usr/lib /lib -type f) > > which avoids checking all the symlinks. > > Then run symlinks remove any dangling links left over. Whoa, that's useful. Thanks for Neil for giving the solution, and to Alan for even asking the question. Having a box whose install dates to sep~ # head /var/log/emerge.log Started emerge on: Nov 03, 2002 *** emerge >=sys-apps/baselayout-1.7.9-r1 >=sys-apps/texinfo-4.2-r1 sys-devel/gettext >=sys-devel/binutils-2.13.90.0.4 >=sys-devel/gcc-3.2 >>> emerge (1 of 7) sys-apps/baselayout-1.8.4.1 to / ::: completed emerge (1 of 7) sys-apps/baselayout-1.8.4.1 to / >>> emerge (2 of 7) sys-apps/texinfo-4.2-r5 to / This seems to be a worthy enterprise. BTW, though, $(find -H ...) will have too big a list. Perhaps better to do find -H /usr/lib /lib -type f | xargs qfile -o W -- When my cats aren't happy, I'm not happy. Not because I care about their mood but because I know they're just sitting there thinking up ways to get even. ~Penny Ward Moser Sortir en Pantoufles: up 913 days, 22:12