Install htop in CentOS

centOS

Htop is a text-mode, interactive process viewer for Linux run via console/ssh, and to install htop in CentOS is a pretty simple task. Among other things, htop allows you to:

  • quickly view key performance statistics such as CPU(multi-core layout) and Memory/Swap usage;
  • scroll the process list vertically and horizontally to see all processes and complete command lines;
  • kill processes by selection rather than entering process number;
  • use mouse to select list items.

htop-overview

You can easily install htop in CentOS 5.x/6.x using yum, but first you need to install the rpmforge package repository applicable to your architecture (32bit or 64bit) by using the following commands:

Install RPM for CentOS 5.x

32-BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i686.rpm
rpm -Uhv rpmforge-release*.rf.i386.rpm

64BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
rpm -Uhv rpmforge-release*.rf.x86_64.rpm

Install RPM for CentOS 6.x

32-BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
rpm -Uhv rpmforge-release*.rf.i386.rpm

64BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -Uhv rpmforge-release*.rf.x86_64.rpm

Install htop in CentOS Using YUM

Once the repository is installed, all you need to do to install htop in CentOS is run the following:

yum install htop