Google Chrome是一款由 Google 公司開發的網頁瀏覽器,新版的 Chrome 瀏覽器使用的是 Blink 內核,具有運行速度快,穩定的特性。Chrome 能夠運行在 Windows,Linux,Mac 桌面系統中,同時也能運行在手機和平板上的iOS,Android系統上,是一款跨平台的瀏覽器。
本文章介紹在 CentOS 7 系統上使用谷歌 Yum 軟件源安裝 Chrome 瀏覽器,谷歌的官方軟件源在中國可用,使用谷歌 Yum 軟件源能夠保證安裝的 Chrome 瀏覽器是最新版本。
CentOS 7 安裝 Chrome
1)系統需求
CentOS 7 系統必須是 64 位系統,Chrome 沒有 32 位系統的軟件包。
2)在 CentOS 7 系統中添加谷歌官方 Yum 軟件源
在 CentOS 7 系統下的 /etc/yum.repos.d/
文件夾中創建 google-chrome.repo
文件:
sudo vi /etc/yum.repos.d/google-chrome.repo
添加如下 Yum 軟件源信息:
[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
3)查看谷歌 Chrome 瀏覽器的軟件包信息
sudo yum info google-chrome-stable
系統可能會顯示如下信息:
可安裝的軟件包
名稱 :google-chrome-stable
架構 :x86_64
版本 :67.0.3396.87 發布 :1 大小 :50 M 源 :google-chrome/x86_64 簡介 : Google Chrome 網址 :https://chrome.google.com/ 協議 : Multiple, see https://chrome.google.com/ 描述 : The web browser from Google : : Google Chrome is a browser that combines a minimal design with : sophisticated technology to make the web faster, safer, and easier.
從顯示信息上可以看出當前的 Chrome 版本是 67。
4)在 CentOS 7 系統中安裝 Chrome 瀏覽器穩定版
sudo yum install google-chrome-stable
5)在安裝 Chrome 瀏覽器時如果提示如下錯誤信息:
獲取 GPG 密鑰失敗:[Errno 14] curl#7 - "Failed connect to dl-ssl.google.com:443; Operation now in progress"
說明無法下載 GPG 秘鑰信息,可以在 Yum 軟件源信息中配置不檢查秘鑰信息,把 Yum 軟件源信息修改為如下內容:
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=0 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
然后再運行安裝命令。