Xcode 6.1 - How to uninstall command line tools?

2019-01-17 09:26发布

I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode).

I've tried

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

but then I get the error

sudo: /Developer/Library/uninstall-devtools: command not found

3条回答
爷的心禁止访问
2楼-- · 2019-01-17 10:06

You can simply delete this folder

/Library/Developer/CommandLineTools

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

查看更多
欢心
3楼-- · 2019-01-17 10:11

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

rm -rf /Library/Developer/CommandLineTools
查看更多
可以哭但决不认输i
4楼-- · 2019-01-17 10:14

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.

查看更多
登录 后发表回答