How To Install sysstat on AlmaLinux 8

In this tutorial we learn how to install sysstat in AlmaLinux 8. sysstat is Collection of performance monitoring tools for Linux

Introduction

In this tutorial we learn how to install sysstat on AlmaLinux 8.

What is sysstat

The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, pidstat, cifsiostat and sa tools for Linux. The sar command collects and reports system activity information. The information collected by sar can be saved in a file in a binary format for future inspection. The statistics reported by sar concern I/O transfer rates, paging activity, process-related activities, interrupts, network activity, memory and swap space utilization, CPU utilization, kernel activities and TTY statistics, among others. Both UP and SMP machines are fully supported. The sadf command may be used to display data collected by sar in various formats (CSV, XML, etc.). The iostat command reports CPU utilization and I/O statistics for disks. The tapestat command reports statistics for tapes connected to the system. The mpstat command reports global and per-processor statistics. The pidstat command reports statistics for Linux tasks (processes). The cifsiostat command reports I/O statistics for CIFS file systems.

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

Install sysstat on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install sysstat

Install sysstat on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install sysstat

How To Uninstall sysstat on AlmaLinux 8

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

sudo dnf remove sysstat

References

Summary

In this tutorial we learn how to install sysstat on AlmaLinux 8 using yum and dnf.