How do you start a pkg from command line?
Asked
Active
Viewed 686 times
2 Answers
3
Use open
, the command-line equivalent of double-clicking a file.

Scott Hunter
- 48,888
- 12
- 60
- 101
-
This is exactly what I was looking for, not needed to extract but open it. – JoSeTe4ever Oct 29 '19 at 16:49
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

michfost
- 1