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

    1. #vim /etc/yum.repos.d/google-chrome.repo

    写入如下内容,保存退出:

    1. [google-chrome]
    2. name=google-chrome
    3. baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
    4. enabled=1
    5. gpgcheck=1
    6. gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub


    2.安装google chrome浏览器
    Google官方源安装:

    1. #yum -y install google-chrome-stable

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

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

    3.运行chrome
    找到chrome路径,并做个软连接,方便使用:

    1. #which google-chrome-stable
    2. #ln -s xxx /bin/chrome # xxx为which google-chrome-stable的返回结果