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 1Q30bz-00015a-QX for garchives@archives.gentoo.org; Fri, 25 Mar 2011 06:35:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF2681C017; Fri, 25 Mar 2011 06:33:42 +0000 (UTC) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id C0CBA1C017 for ; Fri, 25 Mar 2011 06:33:42 +0000 (UTC) Received: by gyh4 with SMTP id 4so95534gyh.40 for ; Thu, 24 Mar 2011 23:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=vREdRFFV7/WvY3RCxRBH7CU0S/XD9H7WY9op9b9xB+g=; b=s4njUBFkiffkSxM1FGU128JvBrfW0+ZufMDtlf0lbDiUTnYgn3JkUVFGwKdqSchoZ2 Bcg8L6MAdqJ9p4rLkbQiZLkXpGyauFqBnCOw2pgRqpxCpQx4hD9s74xJNAs42IIja9t8 ez8bUmaxTgGMF8pfVW+J+UXfsHnyxb+pmkEZ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Lph1qPDJWEC93DEOEubKknCOfE73jZ7046saujwZFRYQQzDs4U1DUr33l3dAYDeu2b fEg6EcajG/VkqHPRtgDMjrN75Ys0d/PjIjhU5LWBXG66qZ+BOFU70MYL0P7XqUSnyjzW QlMJ+cAX1IX5FlcMLHLIKKqgTvrsEOIXUlZTg= Received: by 10.91.20.12 with SMTP id x12mr471268agi.100.1301034821824; Thu, 24 Mar 2011 23:33:41 -0700 (PDT) Received: from [192.168.2.5] (adsl-0-90-60.jan.bellsouth.net [65.0.90.60]) by mx.google.com with ESMTPS id r8sm753659anf.3.2011.03.24.23.33.39 (version=SSLv3 cipher=OTHER); Thu, 24 Mar 2011 23:33:40 -0700 (PDT) Message-ID: <4D8C3742.30301@gmail.com> Date: Fri, 25 Mar 2011 01:33:38 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.17) Gecko/20110321 Gentoo/2.0.12 SeaMonkey/2.0.12 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How can I find all "orphaned" files? References: <4D8BB307.30806@gmail.com> <20110324231045.29883942@digimed.co.uk> In-Reply-To: <20110324231045.29883942@digimed.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 643da006416a1dd48ac3e13d6d1ed925 Neil Bothwick wrote: > On Thu, 24 Mar 2011 22:09:27 +0100, Jarry wrote: > > >> I know, there is "qfile" with "-o" option, but its syntax is >> not clear to me. I tried "qfile -o *" but that is apparently >> not the correct syntax, as all I got were a few top-level >> subdirectories and nothing more... >> > qfile operates on the files you give it, it doesn't recurse into > directories. > > Try find / -xdev -type f -exec qfile -o {} + > > > Naturally this returned a lot so we have to use common sense before deleting something. That said, what about these: /usr/bin/cc /usr/bin/c++ /usr/bin/c89 /usr/bin/gcc /usr/bin/gcov /usr/bin/x86_64-pc-linux-gnu-c++ /usr/bin/python-config A whole bunch of files in: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/32/* /usr/lib64/python2.6/* Just to name a few. Naturally there are files in /root and a lot of files that I created that also show up. Some of the files above, they just about have to belong to something tho. I used qfile to test and it says they don't so your command is working fine. I'm pretty sure tho that python-config and gcc belong to their respective packages. Question is, why does qfile think they don't? This is the ones I tested: root@fireball / # qfile /usr/bin/c++ root@fireball / # qfile /usr/bin/c89 root@fireball / # qfile /usr/bin/gcc root@fireball / # qfile /usr/bin/gcov root@fireball / # qfile /usr/bin/x86_64-pc-linux-gnu-c++ root@fireball / # qfile /usr/bin/python-config root@fireball / # qfile /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/32/ root@fireball / # qfile /usr/lib64/gcc/x86_64-pc-linux-gnu/4.4.5/32/crtbeginS.o root@fireball / # qfile /usr/lib64/python2.6/binhex.pyo root@fireball / # Is qfile wrong? The equery command said the same as qfile so this is confusing. Dale :-) :-) P. S. Nope, I'm not deleting those. ;-)