使用shell脚本

时间:2017-05-18 17:14:11

标签: linux shell google-chrome

我正在我的centos VM上安装谷歌Chrome浏览器,方法是编写一个shell脚本来执行此操作。我已经下载了以下内容:

  

谷歌 - 铬 - stable_current_x86_64.rpm

当我尝试安装此软件包时,出现以下错误:

  

警告:google-chrome-stable_current_x86_64.rpm:标头V4 DSA / SHA1签名,密钥ID 7fac5991:NOKEY   错误:失败的依赖项:       google-chrome-stable-58.0.3029.110-1.x86_64需要lsb> = 4.0       google-chrome-stable-58.0.3029.110-1.x86_64需要libnss3.so(NSS_3.19.1)(64位)       google-chrome-stable-58.0.3029.110-1.x86_64需要libstdc ++。so.6(GLIBCXX_3.4.18)(64位)       google-chrome-stable-58.0.3029.110-1.x86_64需要libstdc ++。so.6(GLIBCXX_3.4.14)(64位)       google-chrome-stable-58.0.3029.110-1.x86_64需要libstdc ++。so.6(GLIBCXX_3.4.15)(64位)

我意识到在安装Chrome之前我应该​​下载许多不同的软件包。 有没有办法一起安装这些软件包而不必逐个安装它们?

2 个答案:

答案 0 :(得分:0)

使用yum命令在Centos系统上安装Chrome浏览器。

yum localinstall google-chrome-stable_current_x86_64.rpm

答案 1 :(得分:0)

您可以查看 this 以添加 Chrome 的源