Marius Butuc
Marius Butuc

Reputation: 18270

How to remove the OSX-GCC-Installer?

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?

Upvotes: 10

Views: 13744

Answers (4)

Evgeny Goldin
Evgeny Goldin

Reputation: 1880

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

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

Upvotes: 1

Danijel-James W
Danijel-James W

Reputation: 1506

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.

Upvotes: -1

stratagem
stratagem

Reputation: 545

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.

Upvotes: 5

ern
ern

Reputation: 1512

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.

Upvotes: 6

Related Questions