1. Get centos release and osrelease.
cat /etc/centos-release
2. Install EPEL in the Centos server.
sudo yum install -y epel-release
[root@centos8 ~]# sudo yum install -y epel-release
stLast metadata expiration check: 8:08:19 ago on Sun 09 Oct 2022 10:57:59 PM +07.
Package epel-release-8-17.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
3. Get the information of htop package then install htop on a Centos 7 server.
sudo yum info htop
sudo yum install -y htop
[root@centos8 ~]# sudo yum info htop
Last metadata expiration check: 8:09:45 ago on Sun 09 Oct 2022 10:57:59 PM +07.
Available Packages
Name : htop
Version : 3.2.1
Release : 1.el8
Architecture : x86_64
Size : 170 k
Source : htop-3.2.1-1.el8.src.rpm
Repository : epel
Summary : Interactive process viewer
URL : http://hisham.hm/htop/
License : GPLv2+
Description : htop is an interactive text-mode process viewer for Linux, similar to
: top(1).
[root@centos8 ~]# sudo yum install -y htop
Last metadata expiration check: 8:09:49 ago on Sun 09 Oct 2022 10:57:59 PM +07.
Dependencies resolved.
========================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================
Installing:
htop x86_64 3.2.1-1.el8 epel 170 k
Transaction Summary
========================================================================================================================
Install 1 Package
Total download size: 170 k
Installed size: 396 k
Downloading Packages:
htop-3.2.1-1.el8.x86_64.rpm 135 kB/s | 170 kB 00:01
------------------------------------------------------------------------------------------------------------------------
Total 115 kB/s | 170 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : htop-3.2.1-1.el8.x86_64 1/1
Running scriptlet: htop-3.2.1-1.el8.x86_64 1/1
Verifying : htop-3.2.1-1.el8.x86_64 1/1
Installed:
htop-3.2.1-1.el8.x86_64
Complete!
Run htop, type htop then hit Enter.
htop
ADVERTISEMENT
5/5 - (1 vote)