How to uninstall Xcode 4.4 command line tools (Mac OS X 10.8 Mountain Lion)?

给你一囗甜甜゛ 提交于 2019-11-29 17:26:46

问题


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

But how to uninstall them?


回答1:


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/

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

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).




回答2:


sudo /Developer/Library/uninstall-devtools –mode=all works for 10.8.5




回答3:


This should still work to remove xcode.

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



回答4:


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



来源:https://stackoverflow.com/questions/11678882/how-to-uninstall-xcode-4-4-command-line-tools-mac-os-x-10-8-mountain-lion

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