Thursday, March 26, 2015

macos - Correct location of git on Mac OS X


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


Answer



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.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...