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 1MDlrE-0007aU-L1 for garchives@archives.gentoo.org; Mon, 08 Jun 2009 20:54:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B2EEE034D; Mon, 8 Jun 2009 20:54:15 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 39C34E034D for ; Mon, 8 Jun 2009 20:54:15 +0000 (UTC) Received: from krikkit.digimed.co.uk (krikkit.digimed.co.uk [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.digimed.co.uk (Postfix) with ESMTPSA id A056E28B9AE for ; Mon, 8 Jun 2009 21:54:14 +0100 (BST) Date: Mon, 8 Jun 2009 21:54:08 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Finding orphaned libs Message-ID: <20090608215408.3c4b4c91@krikkit.digimed.co.uk> In-Reply-To: <200906082244.18324.alan.mckinnon@gmail.com> References: <200906082244.18324.alan.mckinnon@gmail.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.1cvs71 (GTK+ 2.16.1; i686-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Q3LD.S2_2bZVMv79Ruw7kbT"; protocol="application/pgp-signature" X-Archives-Salt: 8c6b84ad-7573-4987-8179-5dfe4d7e25ef X-Archives-Hash: 452ad62cefa781f2cdabf9d3b8292b08 --Sig_/Q3LD.S2_2bZVMv79Ruw7kbT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=20 >=20 > 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. --=20 Neil Bothwick It may be that your sole purpose in life is simply to serve as a warning to others. --Sig_/Q3LD.S2_2bZVMv79Ruw7kbT Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkotenUACgkQum4al0N1GQNFnACgiB4nfKqqWM7QO0Pzjwgon/lS FK4AoM8G75paHl0woe5JwgmwNqFK5kyt =Apdf -----END PGP SIGNATURE----- --Sig_/Q3LD.S2_2bZVMv79Ruw7kbT--