Skip to main content
January 29, 2013
Question

Update Reader from Mac Terminal?

  • January 29, 2013
  • 1 reply
  • 1035 views

I'm looking to do remote updates of Adobe Reader on machines with no Internet (please note this does not mean no *NETWORK*) access.

I found an answer to my question of how to get the version...

defaults read /Applications/Adobe\ Reader.app/Contents/Info.plist CFBundleGetInfoString | cut -d' ' -f4 | sed 's/,$//'

And the procedure I worked out:

REMOTEHOST=hostname

scp AdbeRdr11001_en_US.dmg $REMOTEHOST:

ssh $REMOTEHOST hdiutil attach ~/AdbeRdr11001_en_US.dmg

ssh -t $REMOTEHOST "sudo installer -pkg \"/Volumes/AdbeRdr11001_en_US/Adobe Reader XI Installer.pkg\" -target /"

ssh $REMOTEHOST "hdiutil detach \`hdiutil info | grep AdbeRdr11001_en_US | grep '^/' | cut -f1\`"

ssh $REMOTEHOST rm ~/AdbeRdr11001_en_US.dmg

This topic has been closed for replies.

1 reply

MichaelKazlow
Legend
January 29, 2013