配置yum下载源
在目录/ e t c / y u m . r e p o s . d / \rm /etc/yum.repos.d//etc/yum.repos.d/ 下新建文件g o o g l e − c h r o m e . r e p o \rm google-chrome.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
添加参数解决源问题
yum -y install google-chrome-stable --nogpgcheck
下载
yum -y install google-chrome-stable
然后输入google-chrome即可打开浏览器
注意,如果此时是root身份,需要使用命令
google-chrome --no-sandbox