
=> The Xcode Command Line Tools will be installed.ĭownloading Command Line Tools (macOS Mojave version 10.14) for Xcodeĭownloaded Command Line Tools (macOS Mojave version 10.14) for Xcode

=> The following new directories will be created: usr/local/share/zsh/site-functions/_brew The following output: => This script will install:

The installer command will generate (copied from the website) /usr/bin/ruby -e "$(curl -fsSL )" Tested with Homebrew version 2.1.10 (git revision b7d38f last commit ).įor me that steps was much easier, then downloading dmg package from apple and copy it by ssh to the target machine. The big benefit is for me that I can do it from a terminal (even ssh) and the installer do not show a UI-Pop-Window, which blocks me from use with remote terminal. I found out that Homebrew install the Xcode Command Line Tools as well. $ rm ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg I see no purpose keeping it around, but you can if you want. Unmount the dmg file $ hdiutil detach /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)ĭelete the dmg file from the remote optional $ sudo installer -pkg Command\ Line\ Tools\ \(Mountain\ Lion\).mpkg -target / Here, installer must be run with sudo because this package needs to be installed on the root file system $ cd /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)

Here, I'm using hdiutil to mount the image $ hdiutil attach ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg In the following command, I'm using scp to securely copy the file from my local computer to the remote named remote $ scp ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg remote:Downloads/ If you don't have a free Apple developer account, register for oneĭownload the "Command Line Tools for Xcode" appropriate for your version of OSXįor me, that was "Command Line Tools (OS X Mountain Lion) for Xcode - April 2014" I recently had to install Xcode command line tools on Mountain Lion over SSH.
