在google网站下载chrome速度很慢,但是添加了chrome的源之后,就可以在终端通过yum install 来安装chrome了,会快很多。
首先在/etc/yum.repos.d里建立一个名为google.repo文件,然后复制以下代码到其中,然后保存:
32位系统:
[google]
name=Google – i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
64位系统:
[google64]
name=Google – x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
然后使用:
1.sudo yum install google-chrome-stable 来安装最新稳定版
2.sudo yum install google-chrome-unstable 最新版chrome这里会出现错误:
1.警告:/var/cache/yum/x86_64/19/google64/packages/google-chrome-stable-29.0.1547.65-220622.x86_64.rpm: Header V4 DSA/SHA1Signature, key ID 7fac5991: NOKEY 2.从https://dl-ssl.google.com/linux/linux_signing_key.pub 检索密钥3.获取 GPG 密钥失败:[Errno 14] curl#7 - "Failed to connect to 2404:6800:4005:c00::be: 网络不可达"
提示获取GPG密钥失败,这个可以在yum时候添加一个参数:
1.sudo yum install google-chrome-stable --nogpg这样就可以安装了!
01.================================================================================02.Package 架构 版本 源 大小03.================================================================================04.正在安装:05.google-chrome-stable x86_64 29.0.1547.65-220622 google64 53 M06.事务概要07.================================================================================08.安装 1 软件包09.总计:53 M10.安装大小:160 M11.Is this ok [y/d/N]: y12.Downloading packages:13.Running transaction check14.Running transactiontest15.Transaction testsucceeded16.Running transaction17.正在安装 : google-chrome-stable-29.0.1547.65-220622.x86_64 1/118.Redirecting to /bin/systemctlstartatd.service19.验证中 : google-chrome-stable-29.0.1547.65-220622.x86_64 1/120.已安装:21.google-chrome-stable.x86_64 0:29.0.1547.65-220622 22.完毕!