AirV's Blog

Just another blog

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…

  1. goes to your Desktop folder
  2. grabs DarwinPorts from the opendarwin site
  3. mounts the dmg
  4. goes to the newly mounted DarwinPorts volume
  5. installs the package, targeted to the root, as the root user
  6. ejects the mounted disc image.

you then can use Automator to do this…

code taken from this page

mercredi 24 novembre 2010 Posté par à 11:40 | Apple, Logiciel | pas de commentaire