How To Install sysstat on CentOS 7
Introduction
In this tutorial we learn how to install sysstat
on CentOS 7.
What is sysstat
The sysstat package contains sar, sadf, mpstat, iostat, pidstat, nfsiostat-sysstat, tapestat, cifsiostat and sa tools for Linux. The sar command collects and reports system activity information. This information 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 nfsiostat-sysstat command reports I/O statistics for network file systems. The cifsiostat command reports I/O statistics for CIFS file systems.
We can use yum
or dnf
to install sysstat
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install sysstat.
Install sysstat on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install sysstat
using yum
by running the following command:
Install sysstat on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install sysstat
using dnf
by running the following command:
How To Uninstall sysstat on CentOS 7
To uninstall only the sysstat
package we can use the following command:
References
Summary
In this tutorial we learn how to install sysstat
on CentOS 7 using yum
and dnf
.