Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I wanted to enable the developer libraries in Mac (RoR, Perl, gcc etc.) so I installed Xcode. I am only interested in these command line tools and will not be using Xcode (or other GUI tools with Mac and iPhone developer bells and whistles that are part of the SDK) at all, as I generally like to use a text editor and the command line.

How do I remove just those IDE tools while still keeping my programming environment intact? I'd rather reclaim the disk space. I have Xcode 3.2 installed.

share|improve this question

3 Answers 3

As of recent releases of Xcode 4 you can now get the command-line tools as a separate download and installer - it's a much smaller download too: http://developer.apple.com/downloads.

You'll want to uninstall an existing Xcode install with the command:

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

before installing the command-line only tools.

share|improve this answer

My guess is that you'll have to delete things manually. You should be able to delete the Applications and Documentation folders, and the two iPhone platform folders if you aren't interested in that at all. That will get rid of most of the size (7.5GB out of 11.1GB for me, but I'm pretty sure some of that gets downloaded when you open Xcode and another 2GB was project files).

You might be able to delete the /Developer folder completely, but definitely have a backup before you try because the compilers might use files stored in there.

share|improve this answer

I am almost positive the gcc tools need Xcode to properly run as well.

share|improve this answer
2  
Nah, I use GCC without XCode. –  CoffeeRain May 21 '12 at 19:36
1  
Also, it's "Xcode" - sorry: so many people see "Xcode" then write "xCode", "XCode" and whatever else.. –  petert Jun 22 '12 at 12:50

Your Answer

 
discard

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.