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