CentOS install htop - fix for No package htop available.
Hello, today I would like to share with you how to install htop on CentOS.
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
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:
That's all, thanks for reading.