繁体   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