假如我們在RHEL6安裝軟體 (或套件),我們會很習慣地點選上方功能表列的「系統」->「管理」->「新增 / 移除軟體」(如下圖):

然後輸入關鍵字"Google / google",會發現Red Hat所提供的Repository (儲存庫),並沒有任何一樣是跟Google的產品有關 (如下圖)。

這時候,我們就不能夠用Red Hat的儲存庫,我們要改用Google所提供的儲存庫來做安裝。所以,我們必須編輯儲存庫檔 (/etc/yum.repos.d/*.repo)。
cd /etc/yum.repos.d/; ls -l
touch ./google.repo; chmod 755 ./google.repo; ls -l ./google.repo
然後,我們要編輯google.repo這個檔案;如果,所要安裝的系統是32位元的,要輸入以下的內容:
[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

而64位元的系統則是輸入以下的資料:
[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
其中的gpgcheck (Check GPG)是否要檢查,可依個人喜好來決定;自己是沒有在檢查的,所以填0;要檢查的話gpgcheck的值要改成1,且gpgkey的位址也要輸入。
編輯完google.repo之後,我們就可以開始安裝了!!
yum install google-chrome-stable (註)


安裝完成之後,我們再點選功能表列的「應用程式」->「網際網路」,會發現Google Chrome已在選單上了 (如下圖)!!


PS:安裝時,除了google-chrome-stable (穩定版)這個版本之外,尚有google-chrome-beta (測試版)和google-chrome-unstable (不穩定版)可供安裝!!
參考資料:http://mingstert.blogspot.com/2011/05/install-google-chrome-on-rhel.html
沒有留言:
張貼留言