I am trying to use the Apple Installer commands to install a package and the output is that it was successful, however, the end result is that nothing actually happens meaning the package never gets installed or launched. Could someone please look over the commands and tell me what is wrong or try it themselves to see what could be the issue?
#Machines must have cURL installed as a prerequisite to download software from internet or FTP server
#grab files from www.teamviewer.com or custom FTP server
curl -O http://download.teamviewer.com/download/TeamViewerHost.dmg
#Mount and Install TeamViewer
hdiutil mount /Users/TeamViewer/Downloads/TeamViewerHost.dmg
sudo cp -R "/Volumes/TeamViewerHost" /Applications
#Run installer
sudo installer -package /Applications/TeamViewerHost/Install\ TeamViewerHost.pkg -target "/Volumes/TeamViewerHost"
#Unmount package
cd ~
hdiutil unmount "/Volumes/TeamViewerHost/"
Or what else I have tried is this with the same result:
#Machines must have cURL installed as a prerequisite to download software from internet or FTP server
#grab files from www.teamviewer.com or custom FTP server
curl -O http://download.teamviewer.com/download/TeamViewerHost.dmg
#Mount and Install TeamViewer
hdiutil mount /Users/TeamViewer/Downloads/TeamViewerHost.dmg
#Run installer
sudo installer -package /Volumes/TeamViewerHost/Install\ TeamViewerHost.pkg -target "/Volumes/TeamViewerHost"
#Unmount package
cd ~
hdiutil unmount "/Volumes/TeamViewerHost/"
The need is to install TeamViewer over SSH through terminal, but Installer is not playing nice. Any help would be greatly appreciated. Thanks in advance
Run:
sudo installer -pkg /Volumes/TeamViewerHost/Install\ TeamViewerHost.pkg -target /
The -target / mean - where the the "root" for the installing package.
When you said -target "/Volumes/TeamViewerHost" it tries install into the mounted .dmg what is read-only and not what you want.
Ps: better to ask on apple.stackexchange.
Just tried the next:
ssh [email protected]
cd Downloads
curl -O http://downloadeu1.teamviewer.com/download/TeamViewerHost.dmg
hdutil mount TeamViewerHost.dmg
sudo installer -pkg /Volumes/TeamViewerHost/Install\ TeamViewerHost.pkg -target /
the sudo/installer prints:
Password:
installer: Package name is TeamViewerHost
installer: Installing at base path /
installer: The install was successful.
and got installed the TeamViewerHost.app into the /Applications on the remote Mac.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With