CentOS7 安装 google chrome

来源:互联网 发布:w7无法安装软件 编辑:程序博客网 时间:2024/05/16 04:43

转载自:http://www.cnblogs.com/fengbohello/p/4871445.html


本篇文章主要记录如何在CentOS7.0上安装Chrome浏览器。

1. 配置yum下载源:

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

    # cd /etc/yum.repo.d/    # vim 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.pu

2. 安装google chrome浏览器:

# yum -y install google-chrome-stable

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

# yum -y install google-chrome-stable --nogpgcheck

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

原创粉丝点击