简体   繁体   English

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

[英]Xcode 6.1 - How to uninstall command line tools?

I installed Xcode command line tool by issuing xcode-select --install ;我通过发出xcode-select --install安装了 Xcode 命令行工具; now I want to uninstall it (without uninstalling Xcode).现在我想卸载它(不卸载 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

如果您单独安装了命令行工具,请使用以下命令删除它们:

sudo rm -rf /Library/Developer/CommandLineTools

An excerpt from an apple technical note (Thanks to matthias-bauch )苹果技术说明摘录(感谢matthias-bauch

Xcode includes all your command-line tools. Xcode 包含您所有的命令行工具。 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.如果您的工具是从 Xcode 单独下载的,则它们位于您系统上的/Library/Developer/CommandLineTools Delete the CommandLineTools folder to uninstall them.删除 CommandLineTools文件夹以卸载它们。

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).请注意:这是根 /Library,而不是用户的 ~/Library)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM