Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Mac OS x 10.6.6 I have git installed in /usr/bin/ I wanted to update the git version however the git installer puts it in /usr/local/git/bin/

I realise I could rearrange to path to point to the local one first, but what I do not get is where the /usr/bin/git version came from.

Could it be part of an xcode install and lastly how would I delete it correctly? I have looked and looked but find nothing, and I didn't install it with ports etc. thanks

share|improve this question
up vote 6 down vote accepted

Try pkgutil --file-info /usr/bin/git to see if the system knows where it came from. But my guess is something other than XCode or an Apple package (unless you just installed XCode 4; I have no idea about it) put it there and you should just remove it.

share|improve this answer
I did install xcode 4 and thats what makes me wonder as it is on the MacBook too in the same place. path: /usr/bin/git pkgid: pkg-version: install-time: 1299573884 uid: 0 gid: 0 mode: 755 So it looks like Apple I guess. – MarkBTomlinson Mar 18 '11 at 9:07
I too installed Xcode 4 on a new MacBook pro yesterday and now I have git installed in /usr/bin/ and I have git installed by Homebrew in /usr/local/bin/. My best guess is that Xcode 4 installs git in /usr/bin/. I opened a StackOverflow question to ask if Xcode 4 installs git. – Matthew Rankin Mar 19 '11 at 19:35
@Matthew: @zcreem's pkgutil output leaves no doubt about it, it's part of XCode 4. – geekosaur Mar 19 '11 at 19:38
Is it really that difficult for Apple to keep everything it installs together? What's wrong with just having all of XCode in /Developer? – klynch Apr 19 '11 at 11:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.