hdiutil

Met hdiutil kun je vanaf de command line eigenlijk alles doen wat je met ‘Disk Utility’ kan doen. Ook het dubbel klikken van een dmg bestand vanuit finder is een actie die je hiermee kunt automatiseren en dus ook vanaf afstand met ssh kan uitvoeren. Hieronder een voorbeeld hoe je AdiumX zou kunnen installeren:

$ wget http://adiumx.cachefly.net/AdiumX_0.89.1.dmg
$ hdiutil attach AdiumX_0.89.1.dmg
/dev/disk4      Apple_partition_scheme
/dev/disk4s1   Apple_partition_map
/dev/disk4s2   Apple_HFS                   /Volumes/Adium X 0.89.1
$ ditto /Volumes/Adium\ X\ 0.89.1/Adium.app /Applications/
$ open /Applications/Adium.app

Maar goed, wat is er nou makkelijker dan:
To install Adium, drag the duck to your Applications folder

Voor alle opties, zie ‘man hdiutil

Comments are closed.