How To Install htop on CentOS 8

  1. Install and enable the EPEL Repository
    # yum install epel-release
    CentOS-8 - AppStream                            1.9 kB/s | 4.3 kB     00:02
    CentOS-8 - AppStream                            1.6 MB/s | 6.0 MB     00:03
    CentOS-8 - Base                                 1.7 kB/s | 3.9 kB     00:02
    CentOS-8 - Base                                 2.0 MB/s | 7.9 MB     00:03
    CentOS-8 - Extras                               678  B/s | 1.5 kB     00:02
    CentOS-8 - PowerTools                           1.8 kB/s | 4.3 kB     00:02
    CentOS-8 - PowerTools                           518 kB/s | 1.8 MB     00:03
    Dependencies resolved.
     Package               Arch            Version            Repository       Size
     epel-release          noarch          8-5.el8            extras           22 k
    Transaction Summary
    Install  1 Package
    Total download size: 22 k
    Installed size: 30 k
    Is this ok [y/N]: y
    Downloading Packages:
    epel-release-8-5.el8.noarch.rpm                  20 kB/s |  22 kB     00:01
    Total                                           9.5 kB/s |  22 kB     00:02
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                        1/1
      Installing       : epel-release-8-5.el8.noarch                            1/1
      Running scriptlet: epel-release-8-5.el8.noarch                            1/1
      Verifying        : epel-release-8-5.el8.noarch                            1/1
  2. Read more How To Install htop on CentOS 8

Rebuild Corrupt Yum RPM Database

When installing packages via yum and the database is corrupt, the following message is displayed:

rpmdb: Thread/process 13903/140194607871904 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm

Commands such as “yum clean all” also fail with this message.  To correct, move the RPM DB files to a temporary folder and rebuild the database with these 3 commands: Read more Rebuild Corrupt Yum RPM Database

How To Install and Enable EPEL Repo on CentOS 8

You can easily install various packages by configuring a CentOS 8.x system to use Fedora EPEL repos and third party packages. This quick tutorial explains how to configure a CentOS Linux version 8.x to use the Fedora Extra Packages for Enterprise Linux (EPEL) repository.

Run the following command:

# yum search epel
epel-release.noarch : Extra Packages for Enterprise Linux repository configuration

# yum -y install epel-release

Enable the PowerTools repo since EPEL package may depend on packages from it:

# yum config-manager --set-enabled PowerTools

To get more info about the package, run:

# yum info epel-release