Install Htop 2.0 – Linux Process Monitoring for RHEL, CentOS & Fedora

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Linux BASH Programming Cookbook
Getting Started with Ubuntu 16.04
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

15 Responses

  1. aleks says:

    Hi, Ravi. Which terminal and font do u use? Looks cool and nice
    Thanks for the post :)

  2. xtremlylazy says:

    Great article, worked fine on AWS AMI.
    Thanks Ravi

  3. DaveX64 says:

    The RPM Forge instructions still installed the old version of HTOP, so I built from source (I’m on CentOS 7). It builds okay using your instructions but at the end, you need to say in order to run HTOP this way, you need to run it with a dot-slash:

    # ./htop

    • Ravi Saive says:


      Even if you use EPEL or any other third party repository, you will get the old version of htop, that’s the reason I’ve included instructions to build from source to get most recent version, but I did tried same instructions on my CentOS 7.0 and I can able to run as:

      # htop
    • Chris says:

      Your path probably doesn’t include your current directory (represented by a single period/dot). Try typing this and you’ll see what I mean:

      echo $PATH

      Sample output:


      This set of directories is your PATH. When you type a command, your OS will search these directories looking for that command. You would think it would start with your current directory by default, but it doesn’t. Note that the directories are seperated by colons. To include the current working directory, you would have to add this to the end of the PATH:


      (A colon then a period/dot)

      You can alter your path by editing the rc file for whatever shell you are using. If you don’t know which shell that is, you can try one of two commands to find out:

      echo $SHELL
      Example output: /bin/bash


      env | grep ‘SHELL=’
      Example output: SHELL=/bin/bash

      So in my case I’m using bash, so I would backup the file .bashrc in my home directory

      cp ~/.bashrc ~/.bashrc.bak

      Then edit the original with a text editor (I use vi, but nano or emacs should work as well):

      vi ~/.bashrc

      At the bottom of the file (in case there are other export PATH statements in it) add the following statement on a line by itself:

      export PATH=$PATH:.

      and save the file. Note that your command syntax may vary if you are not using bash as your shell.

      Open up a NEW terminal window and type:

      echo $PATH

      Example output. Note the :. at the end


      Now your current directory should always be part of the path and you won’t need to use ./ to run scripts. Note that this only takes effect when you start a new terminal.


      1. To make sure you never lock yourself out of shell, ALWAYS open a new terminal KEEPING YOUR OLD ONE OPEN to verify that your changes worked. And remember, backups are a really good idea.

      2. I tested these specific instructions on Linux Mint (a variant of Ubuntu) using the bash shell. I cannot guarantee they will work *exactly* the same everywhere. I can say that I have edited the PATH variable successfully on other linux variants for bash and the technique should be very similar if not identical.

      3. Through research I have noted that some prefer to put this type of command in the file .profile or .bash_profile. I have not tried doing this. You can find more info here:
      like htop when your in their directory.

      Hope this helps!

  4. I follow your guide and has been installed succesfully htop on our cPanel servers. Thank you!

  5. steve says:

    command not found :(

  6. tinhbk says:

    Thank you for TUT.
    Can you help me uninstall htop?

  7. andrej says:

    there is newer rpmforge package available, the rpmforge-release-0.5.3-1

  8. sharad says:

    # rpm -i rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
    error: Failed dependencies:
    rpmlib(FileDigests) <= 4.6.0-1 is needed by rpmforge-release-0.5.3-1.el6.rf.x86_64
    rpmlib(PayloadIsXz) <= 5.2-1 is needed by rpmforge-release-0.5.3-1.el6.rf.x86_64

    getting error after running all command

  9. ad says:


    i prefered a Visual then in terminal

    Thank You for your trouble

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?