Mac terminal installer: Error trying to locate volume at /Applications

Viewed 4962

I'm trying to install a pkg from the terminal. It works as

sudo installer -pkg desktop/test/firefox.pkg -target /

but this sends it to the root folder and I need it to go to the Applications folder.

2 Answers

When the command used is: "installer -package path/to/package -target / " it installs the package into /Applications by default.

You set -target to the root folder by putting a / after it. Instead, put the path to your applications folder. Your new command should look like this:

sudo installer -pkg desktop/test/firefox.pkg -target /path/to/Applications
Related