Unlike Top, its newer sibling - Htop is better in every way. It provides more detailed information, supports colours and is more configurable. Htop is available in the repositories of most distros. However, CentOS (and therefore, RHEL) is not one of them. While it it apparently available in the EPEL repositories, I could not find it for CentOS 4.9. In any event, what we have below are the (simple) steps to install it from the source packages:
- Open a terminal / SSH into the server. The steps below assume root access. If you are not logged in as root, privileged commands will require a
- Visit Htop's Sourceforge page and download the source file for the latest stable version - 0.9 at the time of writing. If you're SSH-ed in, you can use wget to download the file with a command like:
wget -c http://downloads.sourceforge.net/project/htop/htop/0.9/htop-0.9.tar.gz?r=&ts=1304084462&use_mirror=space
- Once downloaded, extract the file using the command:
tar xvzf htop-0.9.tar.gz
This should extract the files into a directory named
- Change directory:
./configurewhich will check and prepare the configuration for your server. If your installation is missing any packages, it will throw up warnings or errors.
makewhich should build the program and ready it for installation.
make installwhich should install the built program.
- ... and that's it. You can also type
make uninstallfrom this directory if you want to remove the program.
Hope this helps :)