mac install .pkg code example Example: how to run pkg file on mac terminal sudo installer -pkg /path/to/package.pkg -target /