How To Install libstatgrab on CentOS 7
Introduction
In this tutorial we learn how to install libstatgrab
on CentOS 7.
What is libstatgrab
Libstatgrab is a library that provides cross platform access to statistics about the system on which it’s running. It’s written in C and presents a selection of useful interfaces which can be used to access key system statistics. The current list of statistics includes CPU usage, memory utilisation, disk usage, process counts, network traffic, disk I/O, and more. The current list of supported and tested platforms includes FreeBSD, Linux, NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX and AIX.
We can use yum
or dnf
to install libstatgrab
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libstatgrab.
Install libstatgrab on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install libstatgrab
using yum
by running the following command:
Install libstatgrab 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 libstatgrab
using dnf
by running the following command:
How To Uninstall libstatgrab on CentOS 7
To uninstall only the libstatgrab
package we can use the following command:
References
Summary
In this tutorial we learn how to install libstatgrab
on CentOS 7 using yum
and dnf
.