Xcode 6.1-如何卸载命令行工具?

我通过发出 xcode-select --install安装了 Xcode 命令行工具; 现在我想卸载它(不卸载 Xcode)。

我试过了

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

然后我得到了错误

sudo: /Developer/Library/uninstall-devtools: command not found
134207 次浏览

If you installed the command line tools separately, delete them using:

sudo rm -rf /Library/Developer/CommandLineTools

An excerpt from an apple technical note (Thanks to matthias-bauch)

Xcode includes all your command-line tools. If it is installed on your system, remove it to uninstall your tools.

If your tools were downloaded separately from Xcode, then they are located at /Library/Developer/CommandLineTools on your system. Delete the CommandLineTools folder to uninstall them.

you could easily delete using terminal:

Here is an article that explains how to remove the command line tools but do it at your own risk.Try this only if any of the above doesn't work.

You can simply delete this folder

/Library/Developer/CommandLineTools

Please note: This is the root /Library, not user's ~/Library).