Huntsville Macintosh Users Group
Remotely Install Packages Remotely Install Packages
BSD | Darwin | How Tos | Linux | man Pages | UNIX/Security News | Site Index
by Marius Schamschula

Mount the .dmg

First we need to mount the .dmg file as a filesystem. Assuming we are logged in to the remote machine via ssh (see the setup proceedure in the Remote System Update HowTo if you have not set this up yet), we can use the hdiutil command:

hdiutil mount mypackage.dmg

Run the Installer

Next we need to change directory:

cd /Volumes/mypackage

Now we are ready to install. We will user the installer:

sudo installer -verbose -pkg mypackage.pkg -target /

Unmount the .dmg

Next we need to change out of the "virtual" directory:

cd -

We again use hdiutil to unmount the .dmg:

hdiutil unmount /Volumes/mypackage
Version 1.0.2 - 20070303
User Group Logo