Is there a command to install a dmg
First, mount the dmg image : sudo hdiutil attach &lt;image&gt;.dmg

The image will be mounted to /Volumes/&lt;image&gt;. Mine contained a package which i installed with: sudo installer -package /Volumes/&lt;image&gt;/&lt;image&gt;.pkg -target /

Finally unmount the image: sudo hdiutil detach /Volumes/&lt;image&gt;.