gpt4 book ai didi

bash - bash 脚本的 Apple 安装程序命令帮助

转载 作者:行者123 更新时间:2023-11-29 09:23:44 25 4
gpt4 key购买 nike

<分区>

我正在尝试使用 Apple Installer 命令来安装包,输出是成功的,但是,最终结果是实际上没有发生任何事情,这意味着包永远不会安装或启动。有人可以查看命令并告诉我哪里出了问题,或者自己尝试看看可能是什么问题吗?

#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/"

或者我尝试过的其他方法都是相同的结果:

#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/"

需要通过终端通过 SSH 安装 TeamViewer,但安装程序运行不佳。任何帮助将不胜感激。提前致谢

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com