Skip to content

Instantly share code, notes, and snippets.

@sprohaszka
Created August 7, 2015 11:51
Show Gist options
  • Save sprohaszka/dd8f26acb0a4390eeee9 to your computer and use it in GitHub Desktop.
Save sprohaszka/dd8f26acb0a4390eeee9 to your computer and use it in GitHub Desktop.
Install dmg or pkg from terminal (command line)
//http://commandlinemac.blogspot.fr/2008/12/installing-dmg-application-from-command.html
hdiutil mount jdk.dmg
sudo installer -pkg /Volumes/JDK\ 7\ Update\ 60/JDK\ 7\ Update\ 60.pkg -dominfo
sudo installer -pkg /Volumes/JDK\ 7\ Update\ 60/JDK\ 7\ Update\ 60.pkg -target the_chosen_domain
hdiutil unmount "/Volumes/Chicken of the VNC/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment