RHEL/CentOS/Fedora Linux命令下安装Google Chrome

键入以下命令查看当前版本是32还是64

$ echo "You are using $(getconf LONG_BIT) bit Linux distro."
You are using 64 bit Linux distro.

$ uname -m
x86_64

如上,根据回显确认是64位。

在 RHEL/CentOS/Fedora Linux 上安装 Google Chrome

以下是通过五个简单步骤安装和使用 Google Chrome 89 的方法:

  • 打开终端应用程序。获取 64 位 Google Chrome 安装程序。
  • 输入以下命令以下载 64 位版本的 Google Chrome:
    • wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
  • 在 CentOS/RHEL 上安装 Google Chrome 及其依赖项,键入:
    • sudo yum install ./google-chrome-stable_current_*.rpm
  • 从 CLI 启动 Google Chrome:
    • google-chrome &
RHEL/CentOS/Fedora Linux命令下安装Google Chrome

yum安装提示错误Thread/process failed: Thread died in Berkeley DB library解决

其中,使用yum安装google时您可以会遇到如下错误:

error: rpmdb: BDB0113 Thread/process 9001/140350695356480 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -(-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
[root@VM_0_16_centos ~]# sudo yum install ./google-chrome-stable_current_*.rpm
error: rpmdb: BDB0113 Thread/process 9001/140350695356480 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -(-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

解决方法

  01、删除yum临时库文件

    rm -fr /var/lib/rpm/__db.*

  02、重建rpm数据库

    rpm --rebuilddb

  03、清理缓存及生产yumdb缓存

    yum clean all

    yum makecache