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.
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.
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