EN
CentOS install htop - fix for No package htop available.
5
points
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.