Xcode command line tools standalone package removal
To remove the Xcode Command Line Tools standalone package, including the update prompts which occur when Apple releases new versions of the xcode command line tools, do the following:
- In a terminal, execute sudo rm -rf /Library/Developer/CommandLineTools
- Shut down
- Restart in Recovery Mode
- Disable SIP. In a terminal (⌘T, or from the Utilities menu), execute csrutil disable
Note you will be asked for an admin user and password
- Restart normally and login
- In a terminal, execute sudo rm /Library/Apple/System/Library/Receipts/com.apple.pkg.CLTools_*
- Shut down
- Restart in Recovery Mode
- Enable SIP. In a terminal (⌘T, or from the Utilities menu), execute csrutil enable
Note you will be asked for an admin user and password
- Restart normally and login
Xcode command line tools information
If you have xcode installed and you need access to the command line tools, you can either use the xcode preferences to set the path to the appropriate version of xcode which contains the command line tools you want to use, or you can use xcode-select to select the appropriate version of xcode which contains the command line tools you want to use.
To find out which version / the path of the xcode command line tools are in use, use
No comments:
Post a Comment