如何卸载Xcode 4.4命令行工具(Mac OS X 10.8 Mountain Lion)? [英] How to uninstall Xcode 4.4 command line tools (Mac OS X 10.8 Mountain Lion)?

查看:123
本文介绍了如何卸载Xcode 4.4命令行工具(Mac OS X 10.8 Mountain Lion)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这篇SO帖子很好地解释了如何为Xcode 4.4.

This SO post explains very well how to install command line tools for Xcode 4.4.

但是如何卸载它们?

推荐答案

此页面上列出了一个脚本,可以在Mountain Lion上执行此操作: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command- line-tools/

There's a script listed on this page to do just that on Mountain Lion: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/

将脚本复制到文本文件中.
将其另存为remove_CLI_tools.sh
打开终端并导航到保存脚本的文件夹.
类型:sh remove_CLI_tools.sh

Copy the script into a text file.
Save it as remove_CLI_tools.sh
Open terminal and navigate to the folder where you saved the script.
Type: sh remove_CLI_tools.sh

我只安装了隔离的命令行工具(独立安装程序),而没有安装Xcode应用程序.因此,我结束了两次脚本的运行,更改了安装程序安装的每个软件包顶部的变量
(您可以通过查看.dmg映像的隐藏的"Packages"文件来检查安装了哪些软件包.安装程序):
com.apple.pkg.DeveloperToolsCLI.bom and .plist com.apple.pkg.DevSDK.bom and .plist

I installed just the isolated command line tools (stand alone installer) without installing the Xcode application. So I ended up running the script twice, changing the variables at the top for each of the packages installed by the installer
(you can check which packages were installed by looking in the hidden "Packages" file of the .dmg image of the installer):
com.apple.pkg.DeveloperToolsCLI.bom and .plist com.apple.pkg.DevSDK.bom and .plist

要小心(有备份,如帖子所建议).

Be careful (have a backup, like the post recommends).

这篇关于如何卸载Xcode 4.4命令行工具(Mac OS X 10.8 Mountain Lion)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆