DropVPS Team
Writer: Cooper Reagan
how to install htop on rhel 9

Table of Contents
First, make sure your system is up to date:
sudo dnf update -y
Now check if the EPEL (Extra Packages for Enterprise Linux) repository is available. While htop used to require EPEL in older versions, RHEL 9 often includes it in AppStream or BaseOS repositories.
Try installing htop directly:
sudo dnf install htop -y
If that works, you’re done. Run it with:
htop
If htop is not found in your default repositories, enable the EPEL repository:
sudo dnf install epel-release -y
Then refresh your repo list:
sudo dnf update -y
Try installing htop again:
sudo dnf install htop -y
After installation, launch htop:
htop
If you want htop to open every time you SSH into the server, you can add it to your .bash_profile:
echo "htop" >> ~/.bash_profile
To remove htop later:
sudo dnf remove htop -y
To check the version installed:
htop --version
And if you want to monitor only a specific user or process, you can use the filter feature inside htop. Just press / and type your search term.
For users who prefer YUM compatibility mode:
sudo yum install htop -y
This works too, as RHEL 9 supports both yum and dnf.
To make the output more readable with tree-view:
Inside htop, press F5 to toggle tree view and F6 to sort by CPU, memory, etc.