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