How do you start a pkg from command line?

918 Views Asked by At

How do you start a pkg from command line?

2

There are 2 best solutions below

1
On BEST ANSWER

Use open, the command-line equivalent of double-clicking a file.

0
On

Please try this:

sudo installer -pkg ~/yourdirectory/packagename.pkg -target ~/Applications/

OR

installer -pkg ~/yourdirectory/packagename.pkg -target ~/Applications/

Using the following line in sudoers to skip password:

jinith ALL=(ALL) NOPASSWD: ALL