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