新建一个yum依赖:
vi /etc/yum.repos.d/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
安装方式1(Google官方源安装)
yum -y install google-chrome-stable
安装方式2(Google官方源可能在中国无法使用,导致安装失败或者在国内无法更新,可以添加以下参数来安装)
yum -y install google-chrome-stable --nogpgcheck
查看chrome浏览器版本:
google-chrome --version