Currently Being ModeratedOct 1, 2012 11:46 AM (in response to cleaf)
There is no easy way to uninstall the command line tools. The following article has a script to uninstall them:
Read the comments in the article. I have not tested the script, but this is the first result when searching Google for "xcode 4.5 uninstall command line tools".
Currently Being ModeratedOct 1, 2012 8:38 PM (in response to Mark Szymczyk)
I don‘t want to use this script without offical test.
So, I have another question.
If I uninstall the Xcode and retain the command line tools in my mountain lion system, whether it can automatically upgrade in any case? In other words, if I install another version of Xcode, what about the former command line tools installed, can it works as well and be recongnized in the new version of Xcode?
Currently Being ModeratedOct 1, 2012 9:18 PM (in response to cleaf)
The point of the command line tools package is to compile your code from the command line without using Xcode or needing to install Xcode. So I can't think of any reason why the command line tools package wouldn't work with a new version of Xcode. Worst case scenario: you have to install a newer version of the command line tools package.
Currently Being ModeratedOct 2, 2012 1:49 AM (in response to Mark Szymczyk)
Thanks！I learned a lot from your precious reply.
I want to konw whether the command line tools can be automatically upgrade to a new version？If the answer is negative, I have to install a new version of the command line tools. Are there any conflicts between various versions?
Currently Being ModeratedOct 2, 2012 11:09 AM (in response to cleaf)
I do not know of any way to automatically upgrade to a new version of the command line tools. You would have to download and install a new command line tools package from Apple's developer downloads site. Installing a new version of the command line tools package overwrites any previously installed version so there aren't going to be conflicts.