0

How do you start a pkg from command line?

Shyamal Chandra
  • 129
  • 3
  • 12

2 Answers2

3

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

Scott Hunter
  • 48,888
  • 12
  • 60
  • 101
0

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