How To Install atop on CentOS 8

atop is An advanced interactive monitor to view the load on system and process level

Introduction

In this tutorial we learn how to install atop on CentOS 8.

What is atop

An advanced interactive monitor for Linux-systems to view the load on system-level and process-level. The command atop has some major advantages compared to other performance-monitors - Resource consumption by all processes - Utilization of all relevant resources - Permanent logging of resource utilization - Highlight critical resources - Watch activity only - Watch deviations only - Accumulated process activity per user - Accumulated process activity per program For more informations The package does not make use of the patches available at http

We can use yum or dnf to install atop on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install atop.

Install atop on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install atop using dnf by running the following command:

sudo dnf -y install atop

Install atop on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install atop using yum by running the following command:

sudo yum -y install atop

How To Uninstall atop on CentOS 8

To uninstall only the atop package we can use the following command:

sudo dnf remove atop

atop Package Contents on CentOS 8

/etc/sysconfig/atop
/usr/bin/atop
/usr/bin/atopconvert
/usr/bin/atopd
/usr/bin/atopsar
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/f6f60d11a619c10f1f60fd3980453b9e57c322
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/6d842f07732f30939b8688246ca50cd1549f04
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/5950cd9b1d4b58a5e02d096a9292113d1b8942
/usr/lib/systemd/system/atop-rotate.service
/usr/lib/systemd/system/atop-rotate.timer
/usr/lib/systemd/system/atop.service
/usr/lib/systemd/system/atopacct.service
/usr/lib/systemd/system/atopgpu.service
/usr/sbin/atopacctd
/usr/sbin/atopgpud
/usr/share/atop/atop.daily
/usr/share/doc/atop
/usr/share/doc/atop/AUTHOR
/usr/share/doc/atop/COPYING
/usr/share/doc/atop/README
/usr/share/man/man1/atop.1.gz
/usr/share/man/man1/atopsar.1.gz
/var/log/atop

References

Summary

In this tutorial we learn how to install atop on CentOS 8 using yum and dnf.