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 1Q3824-0000gd-C9 for garchives@archives.gentoo.org; Fri, 25 Mar 2011 14:30:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B17531C04A; Fri, 25 Mar 2011 14:27:49 +0000 (UTC) Received: from basement.kutulu.org (187.250.102.97.cfl.res.rr.com [97.102.250.187]) by pigeon.gentoo.org (Postfix) with ESMTP id 801A01C04A for ; Fri, 25 Mar 2011 14:27:49 +0000 (UTC) Received: from localhost (basement.kutulu.org [127.0.0.1]) by basement.kutulu.org (Postfix) with ESMTP id EBA727D801C for ; Fri, 25 Mar 2011 10:27:48 -0400 (EDT) X-Virus-Scanned: amavisd-new at kutulu.org Received: from basement.kutulu.org ([127.0.0.1]) by localhost (basement.kutulu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bTG6YSHpSMcF for ; Fri, 25 Mar 2011 10:27:48 -0400 (EDT) Received: from [192.168.100.84] (173.221.47.98.nw.nuvox.net [173.221.47.98]) by basement.kutulu.org (Postfix) with ESMTPSA id 78A557D801B for ; Fri, 25 Mar 2011 10:27:48 -0400 (EDT) Message-ID: <4D8CA664.2090606@kutulu.org> Date: Fri, 25 Mar 2011 10:27:48 -0400 From: Mike Edenfield User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 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> <4D8C3742.30301@gmail.com> <20110325092228.51929090@digimed.co.uk> <4D8C6187.9060101@gmail.com> In-Reply-To: <4D8C6187.9060101@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 486f07c962a9635c4c84b33d79df62d4 On 3/25/2011 5:33 AM, Dale wrote: > Neil Bothwick wrote: >> On Fri, 25 Mar 2011 01:33:38 -0500, Dale wrote: >> >> >>> 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++ >>> >> I think these are created by gcc-config, so don't belong to any package. >> If you want to do this regularly, I'd suggest creating a list of >> exceptions that you can exclude from find. You don't need to search >> everywhere, /{,usr}/{,s}bin, /{,usr}/lib and /opt should be sufficient. >> >> > > So if they were deleted things would still work? Just curious. This is > a recent install so I wasn't expecting it to find much, just files I > created basically. I just thought it odd that it found so many files > and that qfile/equery didn't know where they came from either. > > That gcc one bugs me tho. It's in /usr/bin but doesn't belong to a > package. Just blows my mind, which ain't much right now. lol I got > to get better meds. /usr/bin/gcc doesn't belong to any package. The gcc packages install versioned files, like: /usr/bin/gcc-4.5.2 -> /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2/x86_64-pc-linux-gnu-gcc When you run gcc-config to pick a compiler, it creates and/or updates /usr/bin/gcc (and the others) to point to whatever version binaries you selected. If you deleted /usr/bin/cc, /usr/bin/gcc, etc. things would stop compiling, but just running gcc-config will make them come back. If /usr/bin/gcc is missing you will get an error about your GCC_SPECS being wrong but that's because gcc-config tries to run `/usr/bin/gcc -v` to check for problems. But the error is harmless -- just re-run gcc-config again and you will see it finish with no problems. --Mike