Xcode 6.1 - How to uninstall command line tools?

谁说胖子不能爱 提交于 2019-11-26 16:10:59

问题


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

回答1:


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

rm -rf /Library/Developer/CommandLineTools



回答2:


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.




回答3:


You can simply delete this folder

/Library/Developer/CommandLineTools

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



来源:https://stackoverflow.com/questions/27438457/xcode-6-1-how-to-uninstall-command-line-tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!