当前位置: 首页 > Linux

CentOS7安装Chrome浏览器

时间:2023-04-06 01:56:34 Linux

配置yum下载源:在/etc/yum.repos.d目录下新建文件google-chrome.repo[root@localhost~]#cd/ect/yum.repos.d//[root@localhostyum.repos.d]#vimgoogle-chrome.repo编辑google-chrome.repo,内容如下,编辑后保存退出(:wq)[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub安装谷歌浏览器:[root@localhostyum.repos.d]#yum-yinstallgoogle-chrome-stablePS:谷歌官方源在国内可能没有,导致国内安装失败或更新失败,可以加如下参数安装:[root@localhostyum.repos.d]#yum-yinstallgoogle-chrome-stable--nogpgcheck这样就可以成功安装googlechrome了。