I am trying to install an application through command line in OS X. This is what I am trying:
hdiutil attach app.dmg
cd /Volumes/appvolume
installer -pkg app.pkg -target "/"
This works fine, however, I am not able to get an output from the installer
command from which I can capture the amount of progress made and the time/amount remaining. I tried the verbose
option
installer -verbose -pkg app.pkg -target "/"
But this only prints output like installer: Optimizing system for installed software…….., etc, nothing about progress. But it surely knows about progress, because when I install the app via double clicking, the installer window that pops up shows a deterministic progress bar that progresses gradually and reaches full length when installation is complete.
Any way I can capture the progress status through command line installer
as well?
Best Answer
You were close - the option you're looking for is -verboseR:
Here's
installer
's output installing a Firefox 43.0.1 .pkg built with AutoPkgr with that flag:I'm not exactly sure when the -verboseR option was added to OS X's installer, but it's present in 10.9+.