logo

how to install htop on centos

logo

There are times you want to have a better control over the system processes and usage and also having a better visual of RAM and CPU usage on your server.As You may already know there is a Linux command called top which will show the resources and users cpu usage but it is not good enough to find out every thing in a glance, That for example you should go to the top right to see cpu usage let say it is 50%, then you have to think of your self in your mind that how much it has used the cpu.But by using htop you can see CPU usage of each core colorful and easily.This third party application will work perfectly on Cpanel Centos Servers.

# whatis htop
htop                 (1)  – interactive process viewer

Install Htop from source instruction:

wget http://softlayer-dal.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz
tar -xzvf htop-1.0.2.tar.gz
cd htop-1.0.2
./configure
make
make install

centos 5

wget http://citylan.dl.sourceforge.net/project/htop/htop/0.8.3/htop-0.8.3.tar.gz
tar xzvf htop-0.8.3.tar.gz
cd htop-0.8.3
./configure
make
make install

Htop Installation Instruction from RPM

The following will guide you through the installation of this useful statistical software both on x82(32bit) & x64(64bit) centos servers

first ssh to your server and login as root

Htop installation on 64bit centos version 6 RPM Package

wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/htop-0.9-1.el6.rf.x86_64.rpm
rpm -i htop-0.9-1.el6.rf.x86_64.rpm

Htop installation on 32bit centos version 6 RPM Package

wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/htop-0.9-1.el6.rf.i686.rpm
rpm -i htop-0.9-1.el6.rf.i686.rpm

 

Htop installation on 64bit centos RPM Package

and if your linux centos version is 64bit use this instead:

wget http://packages.sw.be/htop/htop-0.8.3-1.el5.rf.x86_64.rpm
rpm -i htop-0.8.3-1.el5.rf.x86_64.rpm

Htop Installation on 32bit Centos RPM Package

wget http://packages.sw.be/htop/htop-0.8.3-1.rh9.rf.i386.rpm
rpm -i htop-0.8.3-1.rh9.rf.i386.rpm

If you encountered error such this
failed: No such file or directory
means that you do not have rpm installed so just rin the following command to install rpm and its needed packages

yum install rpm

How to Use htop

for using htop you can simply run htop command

htop

also there are some other options for example the delay time that is -d

htop -d 2

That the above will delay the refresh time to 2 seconds

Leave a comment if you have any questions or comments

http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/htop-0.9-1.el6.rf.i686.rpm

9 Responses to “how to install htop on centos”

  1. Farzin says:

    Hi dear wooshka
    i found that the latest rpm version for htop is 0.7.1 , but htop 0.8.3 is available for download in sourceforge.

    so here is its installation for your dear visitors .
    i have downloaded the default sourceforge package in my cents os 5.4 64 bit and its working fine .

    after downloading the file from source forge with wget
    extract it with :
    tar xzvf htop-0.8.3.tar.gz

    then
    cd htop-0.8.3

    then
    ./configure
    if no error is returned then
    make

    and after it is completed use
    make install

    now u can access htop with
    # htop

    thanks in advanced ;)

  2. voshka says:

    Hi Farzin
    Thanks for your comment
    this post is for about 4 months ago and in they may have released this new version
    and the guideline for installing the latest htop that you provided is related to building htop from the source by using make and make install that for some people it is so easy for achieving so by using the rpm package
    I will provide the latest version for both 32bit and 64bit OS with the both rp and building from the source soon

    Thanks

  3. Hi, thanks for the article. I was looking for something better than top and htop will work.. The first method worked for me smoothly.

  4. voshka says:

    Hi, Thank You too for your great feedback
    YEs it is about two year that I am suing htop instrad of top
    htop shows every thing better
    better system cpu and ram usage indication and more…
    I’m so glad that I could be of assistance

    Thanks

  5. Dave Miller says:

    Excellent notes, thanks for posting.

  6. Mark says:

    Just a quick note: htop delay is in tenths of a second. Therefore, if you run:
    htop -d 2
    It will update 5 times per second, not every two seconds as suggested.

  7. voshka says:

    Hi
    Thanks for your such attention
    I Will update the post accordingly :)

    Thanks

  8. Naresh says:

    Thanks for your help …..

Trackbacks/Pingbacks

  1. 'htop' installeren, lukt niet.. - webhostingtalk.nl - [...] heb ik een week geleden nog htop geinstalleerd op mijn Centos server: http://woshka.com/blog/linux/centos/...on-centos.html. Werkt hier [...]

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

logo
logo