Languages
[Edit]
EN

CentOS install htop - fix for No package htop available.

5 points
Created by:
marc_so
534

Hello, today I would like to share with you how to install htop on CentOS.

Problem

Today I was trying to install htop on my CentOS, but I got:

[root@localhost]# sudo yum install htop
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package htop available.
Error: Nothing to do

Solution

I found simple solution.

I just needed to install EPEL repo, because my CentOS didn't have it.

Command to install EPEL repo, which will enable us to install htop:

[root@localhost]# sudo yum -y install epel-release

After EPEL repo is installed, we install htop with this command:

[root@localhost]# sudo yum install htop

During installation we need to confirm two times yes (Is this ok [y/N]: y).

After installation is finished we should be able to run htop program just by typing:

[root@localhost]# htop

That's all, thanks for reading.

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

CentOS

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

â€ïžđŸ’» 🙂

Join