2

I am looking for a bash sequence that would tell me if xcode command line tools are installed or not (exit code 0 if they are, something different if not).

sorin
  • 161,544
  • 178
  • 535
  • 806
  • 1
    The Yosemite update in [this thread](http://stackoverflow.com/questions/15371925/how-to-check-if-command-line-tools-is-installed) seems to work also for El Capitan. – dfrib Feb 27 '16 at 13:45

1 Answers1

0

You can check if Xcode Command Line Tools are installed by entering on Terminal:

xcode-select -p

To install them, simply run:

xcode-select --install
lucasarruda
  • 1,462
  • 1
  • 25
  • 45