To install htop on CentOS Linux 8, you can use the package manager yum
.
- First, ensure that the EPEL (Extra Packages for Enterprise Linux) repository is enabled by running the command:
sudo yum install epel-release
- Once the EPEL repository is enabled, you can install htop by running the following command:
sudo yum install htop
This will install htop and its dependencies.
- Once the installation is complete, you can run htop by typing
htop
in the terminal.
Alternatively, you can also use DNF package manager to install htop, DNF is the default package manager for Centos8.
sudo dnf install htop
Note: You may need to run the above commands with superuser privileges, by prefixing sudo
or logging in as the root user.