How are *.dmg packages installed via the command line?
I noticed that they can be mounted with:
me@MacBook-Pro:~$ open /Users/me/Downloads/installer.dmg
What's next?
How are *.dmg packages installed via the command line?
I noticed that they can be mounted with:
me@MacBook-Pro:~$ open /Users/me/Downloads/installer.dmg
What's next?
Assuming that the diskimage contains a package or packages, you would list the packages on the mounted filesystem and then use /usr/sbin/installer
After mounting, you need to cd /Volumes/xyz (where xyz is the mounted volume)
sudo installer -pkg /Volumes/DMGNAME/PKGNAME -target /Be careful: if your software requires a reboot afterwards, the installer will not automatically do this. You have to do it on your own. (Reference: http://hints.macworld.com/article.php?story=20030614230204397)
– Martin Allert Sep 14 '15 at 14:01