簡體   English   中英

CentOS 中的谷歌瀏覽器

[英]Google Chrome in CentOS

在 CentOS 6.5 中,我想安裝 Google Chrome,但我遇到了問題。

我讀到這主要是因為谷歌使用的是最新的 Linux 構建系統,這些系統生成向后不兼容的二進制文件。

1) 啟用 Google YUM 存儲庫:

將以下內容添加到/etc/yum.repos.d/google.repo文件中:

對於 32 位

[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
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=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

2) 使用 YUM 安裝 Google Chrome(以 root 用戶身份)

yum install google-chrome-stable

復制並運行這一行:

curl https://intoli.com/install-google-chrome.sh | bash

雖然在 CentOS 7 中添加 Google Chrome 存儲庫可以工作,但最初的問題提到了 CentOS 6.5,因此僅 yum 存儲庫本身對於那個較舊(但仍受支持)的平台來說還不夠好。

在 Linux 上構建 Google Chrome 瀏覽器時,Google 確實使用了過於“新”的編譯器工具,坦率地說,導致 CentOS 6 中的 libstdc++ 兼容性問題是可以避免的。正確答案是下載並運行我從網站http:/ /chrome.richardlloyd.org.uk/但請注意,您必須至少升級到 CentOS 6.6 才能運行它。

這會在任何 RHEL/CentOS/Amazon Linux 變體上安裝 Chrome。

curl https://intoli.com/install-google-chrome.sh | bash

詳情請參閱: https : //intoli.com/blog/installing-google-chrome-on-centos/

對於 linux rpm,您可以在此處找到特定版本的 Chrome: https : //dl.google.com/linux/rpm/stable/x86_64/google-chrome-stable-CHROME_VERSION.x86_64.rpm

將 CHROME_VERSION 替換為您要查找的版本,例如 86.0.4240.198-1

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM