This SO post explains very well how to install command line tools for Xcode 4.4.
But how to uninstall them?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a script listed on this page to do just that on Mountain Lion: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/
Copy the script into a text file.
Save it as
remove_CLI_tools.shOpen terminal and navigate to the folder where you saved the script.
Type:
sh remove_CLI_tools.shI installed just the isolated command line tools (stand alone installer) without installing the Xcode application. So I ended up running the script twice, changing the variables at the top for each of the packages installed by the installer
(you can check which packages were installed by looking in the hidden “Packages” file of the .dmg image of the installer):
com.apple.pkg.DeveloperToolsCLI.bom and .plistcom.apple.pkg.DevSDK.bom and .plistBe careful (have a backup, like the post recommends).