Install htop on CentOS

Under CentOS, it is not possible to install htop via the official repositories. Here is a small memo about how to install htop under CentOS.

To install htop, we will go through the addition of an external repository: CentOS-Dag.repo.

vi /etc/yum.repos.d/CentOS-Dag.repo

Then paste the following lines:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux

baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
includepkgs=htop*

An update of the repositories:

yum update

htop installation

yum install htop

Comments

comments

Leave a Reply