redhat在线安装chrome浏览器

开始的时候是参考吹尽黄沙始到金 的文章http://www.cnblogs.com/effective/archive/2012/03/18/2405189.html

1.创建一个文件/etc/yum.repos.d/google.repo

2.如果是32位的

[google-chrome]
name=google-chrome - 32-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

如果是64位的

[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

3.安装chrome

稳定版

yum install google-chrome-stable

测试版

yum install google-chrome-beta

非稳定版

yum install google-chrome-unstable

4.运行,默认的root用户无法运行chrome除非设置了-user-data-dir,具体做法是

首先把chrome放到桌面和panel里面,然后右键点属性吧它默认的命令行

opt/google/chrome/google-chrome %U

修改为

opt/google/chrome/google-chrome -user-data-dir %U

就可以在root用户使用chrome了

-----------------------------------------------------------------------------------------------------------------------------------------------------------

但是在第三步的时候就出现了问题:Error: Package: google-chrome-stable-33.0.1750.152-1.x86_64 (giogle-chrome)            Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)

然后参考http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/

# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
# chmod u+x install_chrome.sh
# ./install_chrome.sh
安装成功
非root用户在终端输入命令google-chrome即可
原文地址:https://www.cnblogs.com/thehappyyouth/p/3635619.html