Installation d’un DMG sur MacOs
Pour installer un DMG en ligne de commandes :
cd ~/Desktop
curl -O http://darwinports.opendarwin.org/downloads/DarwinPorts-1.2-10.4.dmg
hdiutil attach DarwinPorts-1.2-10.4.dmg
cd /Volumes/DarwinPorts-1.2/
sudo installer -pkg DarwinPorts-1.2.pkg -target « / »
hdiutil detach /Volumes/DarwinPorts-1.2/
En clair…
- goes to your Desktop folder
- grabs DarwinPorts from the opendarwin site
- mounts the dmg
- goes to the newly mounted DarwinPorts volume
- installs the package, targeted to the root, as the root user
- ejects the mounted disc image.
you then can use Automator to do this…
code taken from this page