在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
然后使用以下常规方法,会出现获取 GPG 密钥失败错误
sudo yum install google-chrome-stable 来安装最新稳定版 sudo yum install google-chrome-unstable 最新版chrome |
这里会出现错误:
警告:/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
从 https://dl-ssl.google.com/linux/linux_signing_key.pub 检索密钥
获取 GPG 密钥失败:[Errno 14] curl#7 - "Failed to connect to 2404:6800:4005:c00::be: 网络不可达"
提示获取GPG密钥失败,这个可以在yum时候添加一个参数:
sudo yum install google-chrome-stable --nogpg |
这样就可以安装了!
================================================================================
Package 架构 版本 源 大小
================================================================================
正在安装:
google-chrome-stable x86_64 29.0.1547.65-220622 google64 53 M
事务概要
================================================================================
安装 1 软件包
总计:53 M
安装大小:160 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction testsucceeded
Running transaction
正在安装 : google-chrome-stable-29.0.1547.65-220622.x86_64 1/1
Redirecting to /bin/systemctlstartatd.service
验证中 : google-chrome-stable-29.0.1547.65-220622.x86_64 1/1
已安装:
google-chrome-stable.x86_64 0:29.0.1547.65-220622
完毕!