redhat下安装chrome

最近在学习linux,安装的是redhat,自带的firefox,由于不习惯firefox,想安装一个chrome,在网上找的安装方法,记录一下方便以后查找

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了



转自:http://www.cnblogs.com/effective/archive/2012/03/18/2405189.html


猜你喜欢

转载自blog.csdn.net/qll125596718/article/details/7519006