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 1MDyyb-0000dm-2a for garchives@archives.gentoo.org; Tue, 09 Jun 2009 10:54:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FD21E0326; Tue, 9 Jun 2009 10:54:44 +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 DEA29E0326 for ; Tue, 9 Jun 2009 10:54:43 +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 541EC28B9AE for ; Tue, 9 Jun 2009 11:54:43 +0100 (BST) Date: Tue, 9 Jun 2009 11:54:41 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Finding orphaned libs Message-ID: <20090609115441.7a665951@krikkit.digimed.co.uk> In-Reply-To: <4a2e33d1.ywJ8s15Mhgl0cdxG%Joerg.Schilling@fokus.fraunhofer.de> References: <200906082244.18324.alan.mckinnon@gmail.com> <20090608215408.3c4b4c91@krikkit.digimed.co.uk> <20090608233122.GA30512@princeton.edu> <4a2e33d1.ywJ8s15Mhgl0cdxG%Joerg.Schilling@fokus.fraunhofer.de> 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_/hboxUHY8MuwG0mT5wo4Fn.J"; protocol="application/pgp-signature" X-Archives-Salt: 1e4e1e2b-52be-40d6-9055-0606ad0a18d0 X-Archives-Hash: 2c56fccf3a2bfef3fcdab57d170e1b80 --Sig_/hboxUHY8MuwG0mT5wo4Fn.J Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 09 Jun 2009 12:05:05 +0200, Joerg Schilling wrote: > > > qfile --orphans $(find -H /usr/lib /lib -type f) > > >=20 > > > which avoids checking all the symlinks. =20 >=20 > In case that you find implementation works correctly, this will > not change anything unless either /usr/lib or /lib are symlinks. >=20 > If you however use find -L, -type f will find even all symlinks in case > they are pointing to a file. The idea is not have find NOT follow symlinks, except when the given path is a symlink (which it often is on a 64 bit machine). Checking the symlinks is a waste of time, it's faster to remove only real files that are orphaned, then remove any dangling symlinks after. Otherwise qfile has to check about three times as many objects. --=20 Neil Bothwick Handy Guide to Modern Science: 1. If it's green or it wiggles, it's biology. 2. If it stinks, it's chemistry. 3. If it doesn't work, it's physics. --Sig_/hboxUHY8MuwG0mT5wo4Fn.J Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkouP3IACgkQum4al0N1GQN5TgCfWlUqL5CH6yL+30jelJfMf+k8 GMgAn2fB/I/x2TWLCMaz00yrOCimOwBg =i170 -----END PGP SIGNATURE----- --Sig_/hboxUHY8MuwG0mT5wo4Fn.J--