Reinstall Xcode command line developer tools

Author

Dheepak Krishnamurthy

Published

February 15, 2022

Keywords

reinstall xcode command line developer tools

Delete existing command line tools and install them again.

ℹ This requires root to run.

# uninstall command line tools
sudo rm -rf /Library/Developer/CommandLineTools
# install command line tools
xcode-select --install

Reuse

Citation

BibTeX citation:
@online{krishnamurthy2022,
  author = {Krishnamurthy, Dheepak},
  title = {Reinstall {Xcode} Command Line Developer Tools},
  date = {2022-02-15},
  url = {https://kdheepak.com/blog/reinstall-xcode-command-line-developer-tools},
  langid = {en}
}
For attribution, please cite this work as:
D. Krishnamurthy, “Reinstall Xcode command line developer tools,” Feb. 15, 2022. https://kdheepak.com/blog/reinstall-xcode-command-line-developer-tools.