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 1MDyCc-0000Kw-7a for garchives@archives.gentoo.org; Tue, 09 Jun 2009 10:05:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72E73E043E; Tue, 9 Jun 2009 10:05:08 +0000 (UTC) Received: from relay03-haj2.antispameurope.com (relay03-haj2.antispameurope.com [83.246.65.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 47899E043E for ; Tue, 9 Jun 2009 10:05:08 +0000 (UTC) Received: by relay03-haj2.antispameurope.com (ASE-Secure-MTA, from userid 1000) id 9451A63C174; Tue, 9 Jun 2009 12:05:06 +0200 (CEST) Received: from pluto.fokus.fraunhofer.de (pluto.fokus.fraunhofer.de [195.37.77.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by relay03-haj2.antispameurope.com (ASE-Secure-MTA) with ESMTP id 2733263C05E for ; Tue, 9 Jun 2009 12:05:06 +0200 (CEST) Received: from EXCHSRV.fokus.fraunhofer.de (bohr.fokus.fraunhofer.de [10.147.9.231]) by pluto.fokus.fraunhofer.de (8.14.2/8.13.7) with SMTP id n59A56BN001471 for ; Tue, 9 Jun 2009 12:05:06 +0200 (MEST) Received: from rigel ([10.147.65.195]) by EXCHSRV.fokus.fraunhofer.de with Microsoft SMTPSVC(6.0.3790.3959); Tue, 9 Jun 2009 12:05:06 +0200 Date: Tue, 09 Jun 2009 12:05:05 +0200 From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Finding orphaned libs Message-ID: <4a2e33d1.ywJ8s15Mhgl0cdxG%Joerg.Schilling@fokus.fraunhofer.de> References: <200906082244.18324.alan.mckinnon@gmail.com> <20090608215408.3c4b4c91@krikkit.digimed.co.uk> <20090608233122.GA30512@princeton.edu> In-Reply-To: <20090608233122.GA30512@princeton.edu> User-Agent: nail 11.22 3/20/05 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=ISO-8859-1 X-OriginalArrivalTime: 09 Jun 2009 10:05:06.0016 (UTC) FILETIME=[C367E600:01C9E8E9] Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b944efab-3fd4-4b07-a95d-7333e6d047c5 X-Archives-Hash: 05e95854aa0aa09315228029193d54e4 Willie Wong wrote: > > qfile --orphans $(find -H /usr/lib /lib -type f) > >=20 > > which avoids checking all the symlinks. In case that you find implementation works correctly, this will not change anything unless either /usr/lib or /lib are symlinks. If you however use find -L, -type f will find even all symlinks in case t= hey are pointing to a file. In negative logic: "find -L /usr/lib -type l" will find all symlinks in /usr/lib that do not point anywhere. =20 > BTW, though, $(find -H ...) will have too big a list. Perhaps better > to do=20 > > find -H /usr/lib /lib -type f | xargs qfile -o This is why find has ".... -exec ... {} +" since 19 years..... xargs will have problems in case that a file name contains spaces, tabs o= r=20 newlines. J=F6rg --=20 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J=F6rg Schilling D-13353 = Berlin js@cs.tu-berlin.de (uni) =20 joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blo= gspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schil= y