歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6.x 安裝Google Chrome浏覽器

CentOS 6.x 安裝Google Chrome浏覽器

日期:2017/2/28 14:53:37   编辑:Linux教程

在CentOS 6.x 安裝Chrome 浏覽器的方法。首先在/etc/yum.repos.d目錄中創建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.pub

配置好Google Chrome浏覽器Yum Repository好後,可以通過以下命令來安裝Google Chrome浏覽器:

# 安裝Google Chrome穩定版本
yum install google-chrome-stable

# 安裝Google Chrome測試版本
yum install google-chrome-beta

# 安裝Google Chrome不穩定版本
yum install google-chrome-unstable

至此Google Chrome浏覽器就安裝完畢。由於Google在中國的特殊性,有時候敲指令安裝的時候會提示主機連接不上或者請求超時之類的。解決此問題只能通過修改/etc/hosts文件來解決,把dl.google.com指向別的可用的服務器。可以在http://code.google.com/p/smarthosts/下載,添加到/etc/hosts文件中。

Copyright © Linux教程網 All Rights Reserved