How To Install pcp-pmda-mysql on Rocky Linux 8
Introduction
In this tutorial we learn how to install pcp-pmda-mysql
on Rocky Linux 8.
What is pcp-pmda-mysql
This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting metrics about the MySQL database.
We can use yum
or dnf
to install pcp-pmda-mysql
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install pcp-pmda-mysql.
Install pcp-pmda-mysql on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install pcp-pmda-mysql
using dnf
by running the following command:
sudo dnf -y install pcp-pmda-mysql
Install pcp-pmda-mysql on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install pcp-pmda-mysql
using yum
by running the following command:
sudo yum -y install pcp-pmda-mysql
How To Uninstall pcp-pmda-mysql on Rocky Linux 8
To uninstall only the pcp-pmda-mysql
package we can use the following command:
sudo dnf remove pcp-pmda-mysql
pcp-pmda-mysql Package Contents on Rocky Linux 8
/usr/libexec/pcp/pmdas/mysql
/usr/libexec/pcp/pmdas/mysql/Install
/usr/libexec/pcp/pmdas/mysql/README
/usr/libexec/pcp/pmdas/mysql/Remove
/usr/libexec/pcp/pmdas/mysql/pmdamysql.pl
/var/lib/pcp/pmdas/mysql
/var/lib/pcp/pmdas/mysql/Install
/var/lib/pcp/pmdas/mysql/README
/var/lib/pcp/pmdas/mysql/Remove
/var/lib/pcp/pmdas/mysql/pmdamysql.pl
References
Summary
In this tutorial we learn how to install pcp-pmda-mysql
on Rocky Linux 8 using yum and dnf.