Htop installation (The process monitoring tool) on Linux – RHEL, CentOS, Ubuntu, Fedora

It is similar to the process monitoring command TOP in Linux servers. But in ‘htop’ we have an advantage over normal top command. We can simply interact the ‘htop’ output with mouse. It is very useful for such persons who likes to mange top output via mouse. In this article I am explaining the steps for installing ‘htop’ in RHEL, CentOS, Ubuntu, Debian and Fedora operating systems.

Recently we discussed a similar tool, mytop. Which is similar in look to the basic resource monitoring tool “top.” By using this command, you can monitor the MySQL queries lively. There are a lot of helping switches are included with this tool. For more details refer this, monitor MySQL databases using mytop.

Here CryBit goes with HTOP. The installation is quite simple. This can be done by the command yum and or apt-get. Here is the steps to install ‘htop’ on different OS with different architecture.

Download and install rpm

For RHEL 5, CentOS 5 and Fedora – 32bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
# rpm -ihv rpmforge-release*.rf.i386.rpm
For RHEL 5, CentOS 5 and Fedora – 64bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
# rpm -ihv rpmforge-release*.rf.x86_64.rpm
For RHEL 6 and CentOS 6 – 32bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
# rpm -ihv rpmforge-release*.rf.i686.rpm
For RHEL 6 and CentOS 6 – 64bit
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -ihv rpmforge-release*.rf.x86_64.rpm

Once the rpm repository is installed, you can start the real installation using yum.

# yum install htop

htop installation on Ubuntu and debian servers.

You can use the command apt-get to install htop on Ubuntu and Debian servers.

# sudo apt-get install htop

Simply, use the command ‘htop’ to view the processes on the server and manage it simply.

# htop

Here is one sample output of ‘htop’ command.

htop

That’s it. 🙂

Related Links:
1, Load monitoring in Linux servers
2, Bandwidth monitoring on linux server with iftop command
3, Top command usages and examples in Unix/Linux

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

2 thoughts on “Htop installation (The process monitoring tool) on Linux – RHEL, CentOS, Ubuntu, Fedora

  1. Hi I am using htop on my vps hosting the site mentioned below.. How can I set it up to get an email when my vps is down, even thought the vps still seems to be running. I can make a hard reset and it will work, I need to be notified that the apache is down. Thanks for your help.

    1. Ben,

      You can use any online monitoring tool to get alerts when the server became unresponsive. Please see this article, uptime monitoring tools.

      Also we can create custom scripts on your server to get email alerts when the load become high. Please let me know if you need any help.
      Check my profile here.

Leave a Reply

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