How do I uninstall 'Command Line Tools for Xcode'
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9315189/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I uninstall 'Command Line Tools for Xcode'
提问by user1214292
Today Apple releases new developer tools, Xcode 4.3.
Today Apple releases new developer tools, Xcode 4.3.
I installed 'Command Line Tools for Xcode - February 2012'. BTW, How do I uninstall it?
I installed 'Command Line Tools for Xcode - February 2012'. BTW, How do I uninstall it?
I can't find uninstall-devtools.
I can't find uninstall-devtools.
You can get 'Command Line Tools for Xcode - February 2012'
You can get 'Command Line Tools for Xcode - February 2012'
回答by Cocoanetics
I created a shell script that removes the command line tools, see here: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/
I created a shell script that removes the command line tools, see here: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/
(This uses the BOM receipt file for the CLI tools to remove all files that this installs)
(This uses the BOM receipt file for the CLI tools to remove all files that this installs)
My article explains why you don't need the CLI tools and how you can still use git or svn or any other tool that is contained in the Xcode.app bundle.
My article explains why you don't need the CLI tools and how you can still use git or svn or any other tool that is contained in the Xcode.app bundle.
回答by Chris
The following worked for me:
The following worked for me:
remove Xcode 4.3 from Applications by moving to the trash or using an uninstaller such as appzapper (if installed) (note: command line tools will still be installed at this point)
install Xcode 4.2.1
use the uninstaller to remove everything from 4.3 and 4.2.1: sudo /Library/uninstall-devtools --mode=all
install Xcode 4.2.1 again
remove Xcode 4.3 from Applications by moving to the trash or using an uninstaller such as appzapper (if installed) (note: command line tools will still be installed at this point)
install Xcode 4.2.1
use the uninstaller to remove everything from 4.3 and 4.2.1: sudo /Library/uninstall-devtools --mode=all
install Xcode 4.2.1 again