Installing htop on CentOS 7

htop is a free (GPL) ncurses-based interactive process viewer for Linux.

It is similar to top, but allows you to scroll vertically and horizontally, so you can see all the processes running on the system, along with their full command lines, as well as viewing them as a process tree, selecting multiple processes and acting on them all at once.

In other OS such as Ubuntu and Fedora based linux, the process to install htop is a very simple, one line apt-get or yum install respectively.

To install htop for CentOS 7, follwo the below steps.

Step 1

The first step is to install the EPEL package:

sudo yum install epel-release

The following is a sample output:

[test@myServer ~]$ sudo yum install epel-release
 Loaded plugins: fastestmirror, langpacks
 Determining fastest mirrors
 * base: mirror.sjc02.svwh.net
 * elrepo: repos.lax-noc.com
 * epel: mirror.sfo12.us.leaseweb.net
 * extras: mirrors.usc.edu
 * updates: mirrors.tummy.com
 Resolving Dependencies
 --> Running transaction check
 ---> Package epel-release.noarch 0:7-10 will be updated
 ---> Package epel-release.noarch 0:7-11 will be an update
 --> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================
 Package Arch Version Repository Size
 ====================================================================================================================
 Updating:
 epel-release noarch 7-11 epel 15 k

Transaction Summary
 ====================================================================================================================
 Upgrade 1 Package

Total download size: 15 k
 Is this ok [y/d/N]: y
 Downloading packages:
 epel/x86_64/prestodelta | 884 B 00:00:00
 epel-release-7-11.noarch.rpm | 15 kB 00:00:00
 Running transaction check
 Running transaction test
 Transaction test succeeded
 Running transaction
 Updating : epel-release-7-11.noarch 1/2
 Cleanup : epel-release-7-10.noarch 2/2
 Verifying : epel-release-7-11.noarch 1/2
 Verifying : epel-release-7-10.noarch 2/2

Updated:
 epel-release.noarch 0:7-11

Complete!

At this point, you should be able to install htop.

Step 2

Install htop by simply issuing the command.

sudo yum -y install htop

You should see the following:

[test@myServer ~]$ sudo yum -y install htop
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.sjc02.svwh.net
 * elrepo: repos.lax-noc.com
 * epel: mirror.sfo12.us.leaseweb.net
 * extras: mirrors.usc.edu
 * updates: mirrors.tummy.com
Resolving Dependencies
--> Running transaction check
---> Package htop.x86_64 0:2.0.2-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================
 Package Arch Version Repository Size
====================================================================================================================
Installing:
 htop x86_64 2.0.2-1.el7 epel 98 k

Transaction Summary
====================================================================================================================
Install 1 Package

Total download size: 98 k
Installed size: 207 k
Downloading packages:
htop-2.0.2-1.el7.x86_64.rpm | 98 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 Installing : htop-2.0.2-1.el7.x86_64 1/1
 Verifying : htop-2.0.2-1.el7.x86_64 1/1

Installed:
 htop.x86_64 0:2.0.2-1.el7

Complete!

Step 3

Now you can run htop by simply typing the command htop.

 11,158 total views,  1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
Website