How to remove the OSX-GCC-Installer?
Asked Answered
D

4

10

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?

Dona answered 17/2, 2012 at 16:46 Comment(1)
Have you tried running the uninstall script in /Developer/Library/uninstall-devtools --mode=all and then installing the official package?Bezonian
O
6

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.

Ody answered 19/2, 2012 at 1:46 Comment(2)
So this will uninstall both xcode and the command line tools? After this we need to install xcode again along with the command line tools?Kerrykersey
it was sudo /Library/Developer/4.1/uninstall-devtools --mode=all on my system 10.8.4Boesch
S
5

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.

Siobhansion answered 29/7, 2012 at 19:42 Comment(0)
Z
1

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

sudo /Library/Developer/4.1/uninstall-devtools -mode=all
Zoonosis answered 13/10, 2014 at 13:13 Comment(0)
C
-1

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.

Coplanar answered 27/10, 2013 at 3:24 Comment(1)
Since XCode 4.3 there is no longer a /Developer folder.Goodwill

© 2022 - 2024 — McMap. All rights reserved.