1.cd etc/yum.repos.d
2.vi google-chrome.repo
在google-chrome.repo中复制以下内容:(这一步记得使用root用户,或者sudo一下。)
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
3.yum -y install google-chrome-stable --nogpgcheck
运行:
[root@localhost yum.repos.d]# vim google-chrome.repo
[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 22576.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 40 M RSS (928 MB VSZ)
Started: Fri Dec 7 23:56:09 2018 - 00:18 ago
State : Sleeping, pid: 22576
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirror-hk.koddos.net
google-chrome | 1.3 kB 00:00:00
google-chrome/x86_64/primary | 1.7 kB 00:00:00
google-chrome 3/3
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:71.0.3578.80-1 will be installed
--> Processing Dependency: liberation-fonts for package: google-chrome-stable-71.0.3578.80-1.x86_64
--> Processing Dependency: libappindicator3.so.1