1.在/etc/yum.repos.d目录下touch google-chrome.repo;
2.vim google-chorme.repo
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
4.成功安装
--------------------------------------2019.3.14--------------------------------------------------------------------------------
[260254@w26-260254 下载]$ rpm -ivh google-chrome-stable_current_x86_64.rpm
警告:google-chrome-stable_current_x86_64.rpm: 头V4 DSA/SHA1 Signature, 密钥 ID 7fac5991: NOKEY
错误:依赖检测失败:
/usr/bin/lsb_release 被 google-chrome-stable-73.0.3683.86-1.x86_64 需要
libXss.so.1()(64bit) 被 google-chrome-stable-73.0.3683.86-1.x86_64 需要
libappindicator3.so.1()(64bit) 被 google-chrome-stable-73.0.3683.86-1.x86_64 需要
liberation-fonts 被 google-chrome-stable-73.0.3683.86-1.x86_64 需要
libnss3.so(NSS_3.22)(64bit) 被 google-chrome-stable-73.0.3683.86-1.x86_64 需要
libssl3.so(NSS_3.28)(64bit) 被 google-chrome-stable-73.0.3683.86-1.x86_64 需要
or
[260254@w26-260254 下载]$ sudo yum localinstall google-chrome-stable_current_x86_64.rpm