[Linux] 在 CentOS 7 上安裝 Google Chrome 瀏覽器

[Linux] 在 CentOS 7 上安裝 Google Chrome 瀏覽器

在 CentOS 上面,預設的瀏覽器是 Firefox,

雖然是也不錯用,不過還是比較習慣 Chrome,

因為 Chrome 在我的每台電腦上都能同步書籤和擴充功能,相當方便~

因此在用了 Firefox 一陣子之後,還是決定來安裝 Google Chrome 了~

 

註:本文參考了 Google Chrome 37 installation in linux CentOS 7 / RHEL 7 / Fedora 20 這篇文章~

 

1. 設定 yum repository

Chrome 的套件並沒有包含在 CentOS 預設的 yum repository 裡面,因此要自己設定~

新增一個檔案 /etc/yum.repos.d/google-chrome.repo,內容設定成如下: 

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1

 

2. 使用 yum 安裝 chrome

執行 yum search google-chrome,可以看到 chrome 有幾種不同版本,

喜歡嘗鮮的可以試用 beta/unstable 版,想要穩定的就還是用 stable 版吧~

testuser@localhost ~ $ yum search google-chrome
Loaded plugins: fastestmirror, langpacks
google-chrome
google-chrome/primary
Loading mirror speeds from cached hostfile
* base: ftp.nsysu.edu.tw
* extras: centos.ustc.edu.cn
* updates: mirrors.btte.net
google-chrome                                                 3/3
================= N/S matched: google-chrome ====================
google-chrome-beta.x86_64 : Google Chrome (beta)
google-chrome-stable.x86_64 : Google Chrome
google-chrome-unstable.x86_64 : Google Chrome (unstable)

 

決定好要用的版本後,用 yum install google-chrome-stable 就能安裝穩定版本的 Chrome 了:

sudo yum -y install google-chrome-stable

 

裝好之後的 Chrome 也很順利的跟 Google account 同步,推薦使用囉~ ^^

 

(本頁面已被瀏覽過 4,940 次)

2 thoughts on “[Linux] 在 CentOS 7 上安裝 Google Chrome 瀏覽器

  1. It’s work, thank you very much
    版主回覆:(01/08/2017 03:11:57 PM)
    No problem~ ^^

發佈回覆給「linux newer」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料