CentOS 7 安装Chrome浏览器

配置yum下载源:linux

在目录 /etc/yum.repos.d/ 下新建文件 google-chrome.repochrome

[root@localhost ~]#    cd /ect/yum.repos.d/

[root@localhost yum.repos.d]#    vim google-chrome.repo

编辑google-chrome.repo,内容以下,,编辑后保存退出(:wq)vim

[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

安装google chrome浏览器:浏览器

[root@localhost yum.repos.d]# yum -y install google-chrome-stable

PS: Google官方源可能在中国没法使用,致使安装失败或者在国内没法更新,能够添加如下参数来安装:google

[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck

这样,google chrome就可在安装成功。url

相关文章
相关标签/搜索