0

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?

voices
  • 2,209
  • As long as you do not want to specify another destination and your software is in pkg format, you go:

    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

2 Answers2

0

Assuming that the diskimage contains a package or packages, you would list the packages on the mounted filesystem and then use /usr/sbin/installer

fd0
  • 10,708
-1

After mounting, you need to cd /Volumes/xyz (where xyz is the mounted volume)

At0micMutex
  • 3,551