0%

macos snippet

Installing .pkg

a.

1
sudo installer -pkg /path/to/package.pkg -target /

will install the package in /Applications.

is all that’s needed. Here / is the mount point of Macintosh HD volume. -target accepts path like "/Volumes/Macintosh HD", or /dev/disk0 also.

b.

1
installer -pkg myapp.pkg -target CurrentUserHomeDirectory

will install the package in ~/Applications.

mysql