Is there a command to install a dmg I want to install a dmg file on a remote server. All I have is an ssh access.
Since a DMG is a disk image, I tried to mount it, but mount does not seem to recognize its format. 

file says my dmg file is a VAX COFF executable.
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;.