How To Install dstat on CentOS 7
Introduction
In this tutorial we learn how to install dstat
on CentOS 7.
What is dstat
Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting. Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval). Dstat gives you detailed selective information in columns and clearly indicates in what magnitude and unit the output is displayed. Less confusion, less mistakes.
We can use yum
or dnf
to install dstat
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dstat.
Install dstat on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install dstat
using yum
by running the following command:
Install dstat 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 dstat
using dnf
by running the following command:
How To Uninstall dstat on CentOS 7
To uninstall only the dstat
package we can use the following command:
References
Summary
In this tutorial we learn how to install dstat
on CentOS 7 using yum
and dnf
.