Skip to content

Instantly share code, notes, and snippets.

@DamianZaremba
Created March 2, 2013 19:26
Show Gist options
  • Save DamianZaremba/5072759 to your computer and use it in GitHub Desktop.
Save DamianZaremba/5072759 to your computer and use it in GitHub Desktop.
Install command line tools from the command line on OSX
Damians-Mac:~ damian$ hdid xcode46cltools_10_86938131a.dmg
/dev/disk2 Apple_partition_scheme
/dev/disk2s1 Apple_partition_map
/dev/disk2s2 Apple_HFS /Volumes/Command Line Tools (Lion)
Damians-Mac:~ damian$ sudo installer -pkg /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)/Command\ Line\ Tools\ \(Mountain\ Lion\).mpkg -target /
Damians-Mac:~ damian$ umount /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment