Centos 7 chrome

博客分享了Linux下Chrome浏览器的下载与安装方法。可从指定链接下载Chrome浏览器的rpm包,安装时若出现缺少依赖包的错误消息,需针对每个依赖包执行特定命令安装输出包,直至所有依赖包安装完成,再执行相应命令。

share from https://www.cnblogs.com/lenmom/p/9195581.html

1. 下载Chrome浏览器的rpm包

https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linux

 

2. 安装Chrome浏览器

rpm -ivh google-chrome-stable_current_x86_64.rpm

如果出现下面错误消息,则表明缺少依赖包:

复制代码
[root@lenmomDesktop Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm 
warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
    libXss.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libappindicator3.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libnss3.so(NSS_3.22)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libssl3.so(NSS_3.28)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
复制代码

针对错误消息中的每个依赖包,执行命令repoquery --nvr --whatprovides   <依赖文件>,安装输出包, such as:

[root@lenmomDesktop Downloads]# repoquery --nvr --whatprovides  libappindicator3.so.1
libappindicator-gtk3-12.10.0-13.el7
[root@lenmomDesktop Downloads]# yum install -y libappindicator-gtk3-12.10.0-13.el7

发现亮点了吗?!!!

 

直到所有依赖包都安装完成,再执行命令:

rpm -ivh google-chrome-stable_current_x86_64.rpm

转载于:https://www.cnblogs.com/zdj8023/p/10806866.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值