public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Edenfield <kutulu@kutulu.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How can I find all "orphaned" files?
Date: Fri, 25 Mar 2011 10:27:48 -0400	[thread overview]
Message-ID: <4D8CA664.2090606@kutulu.org> (raw)
In-Reply-To: <4D8C6187.9060101@gmail.com>

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



  parent reply	other threads:[~2011-03-25 14:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 21:09 [gentoo-user] How can I find all "orphaned" files? Jarry
2011-03-24 23:10 ` Neil Bothwick
2011-03-25  6:33   ` Dale
2011-03-25  9:22     ` Neil Bothwick
2011-03-25  9:33       ` Dale
2011-03-25  9:47         ` Neil Bothwick
2011-03-25 14:27         ` Mike Edenfield [this message]
2011-03-25 16:31           ` Dale
2011-03-25  9:09   ` Mr. Jarry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D8CA664.2090606@kutulu.org \
    --to=kutulu@kutulu.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox