
在CentOS上使用yum安装chrome浏览器,实测在CentOS7和CentOS8中都可以正常操作,需要保证能够直接访问谷歌。
建立一个yum仓库
1 2 3 4 5 6 7 8
| cat >> /etc/yum.repos.d/google-chrome.repo <<EOF [google-chrome] name=google-chrome baseurl=https://dl.google.com/linux/chrome/rpm/stable/\$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub EOF
|
使用yum命令进行安装
1 2 3 4
| yum repolist yum install google-chrome-stable
yum install google-chrome-stable --nogpgcheck
|