xcode 如何删除 OSX-GCC-Installer?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9332196/
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 to remove the OSX-GCC-Installer?
提问by Marius Butuc
Just a couple of days ago I discovered and used Kenneth Reitz's OSX-GCC-Installerto solve the issue of installing Ruby 1.9.3 via RVMon my Mac.
就在几天前,我发现并使用了 Kenneth Reitz 的OSX-GCC-Installer来解决在我的 Mac 上通过 RVM 安装 Ruby 1.9.3的问题。
Today I read on Kenneth's blog about the Command Line Tools for Xcodepackage that Apple added to their official developer tools suite just yesterday for Lion users.
今天,我在 Kenneth 的博客上阅读了有关Xcode 命令行工具包的内容,该包是 Apple 昨天为 Lion 用户添加到其官方开发人员工具套件中的。
I try to keep the number of installed packages to a minimum, so given this alternative, what's the safeway to remove what was added by the OSX-GCC-Installer?
我尝试将已安装软件包的数量保持在最低限度,因此考虑到这种替代方法,删除 OSX-GCC-Installer 添加的内容的安全方法是什么?
采纳答案by ern
According to the creator of the package, you can install Xcode on top of it since it is just a subset. Then you can use the uninstall command to completely remove:
根据包的创建者的说法,您可以在其上安装 Xcode,因为它只是一个子集。然后就可以使用卸载命令彻底删除:
sudo /Developer/Library/uninstall-devtools --mode=all
Definitely not a quick uninstall, but it should work.
绝对不是快速卸载,但它应该可以工作。
回答by snacks
Just an update for anyone coming across this now.
现在只是对遇到此问题的任何人的更新。
If you download Xcode 4.3 or later (in order to install over OSX-GCC to facilitate removal) it is bundled as a single app, so to uninstall, delete the Xcode app rather than using the command mentioned in the accepted answer.
如果您下载 Xcode 4.3 或更高版本(为了通过 OSX-GCC 安装以方便删除),它会被捆绑为单个应用程序,因此要卸载,请删除 Xcode 应用程序,而不是使用已接受答案中提到的命令。
回答by Evgeny Goldin
From https://teamtreehouse.com/forum/uninstalling-osxgccinstaller:
从https://teamtreehouse.com/forum/uninstalling-osxgccinstaller:
sudo /Library/Developer/4.1/uninstall-devtools -mode=all
回答by Danijel-James W
This doesn't work with Xcode 5.x. You'd need to follow the answer snackshas given, or you could also remove the /Developer
directory with this simple command:
这不适用于 Xcode 5.x。您需要遵循小吃给出的答案,或者您也可以/Developer
使用以下简单命令删除目录:
sudo rm -rf /Developer
Problem gone. The only issue I have with the original OSX-gcc uninstaller, is they never created a proper uninstaller to begin with. I was using Pacifist to have a look at the bundled components with the installer, and was trying to figure a way to remove it completely. I might pick this back up sometime again soon and finish it off.
问题消失了。我对原始 OSX-gcc 卸载程序的唯一问题是,他们从未创建过合适的卸载程序。我正在使用 Pacifist 来查看安装程序的捆绑组件,并试图找到一种方法将其完全删除。我可能很快会再次把它捡起来并完成它。