문제

Just a couple of days ago I discovered and used Kenneth Reitz's OSX-GCC-Installer to solve the issue of installing Ruby 1.9.3 via RVM on my Mac.

Today I read on Kenneth's blog about the Command Line Tools for Xcode package that Apple added to their official developer tools suite just yesterday for Lion users.

I try to keep the number of installed packages to a minimum, so given this alternative, what's the safe way to remove what was added by the OSX-GCC-Installer?

도움이 되었습니까?

해결책

According to the creator of the package, you can install Xcode on top of it since it is just a subset. Then you can use the uninstall command to completely remove:

sudo /Developer/Library/uninstall-devtools --mode=all

Definitely not a quick uninstall, but it should work.

다른 팁

Just an update for anyone coming across this now.

If you download Xcode 4.3 or later (in order to install over OSX-GCC to facilitate removal) it is bundled as a single app, so to uninstall, delete the Xcode app rather than using the command mentioned in the accepted answer.

From https://teamtreehouse.com/forum/uninstalling-osxgccinstaller:

sudo /Library/Developer/4.1/uninstall-devtools -mode=all

This doesn't work with Xcode 5.x. You'd need to follow the answer snacks has given, or you could also remove the /Developer directory with this simple command:

sudo rm -rf /Developer

Problem gone. The only issue I have with the original OSX-gcc uninstaller, is they never created a proper uninstaller to begin with. I was using Pacifist to have a look at the bundled components with the installer, and was trying to figure a way to remove it completely. I might pick this back up sometime again soon and finish it off.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top