How To Install pcp-pmda-rpm on Rocky Linux 8

In this tutorial we learn how to install pcp-pmda-rpm on Rocky Linux 8. pcp-pmda-rpm is Performance Co-Pilot (PCP) metrics for the RPM package manager

Introduction

In this tutorial we learn how to install pcp-pmda-rpm on Rocky Linux 8.

What is pcp-pmda-rpm

This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting metrics about the installed RPM packages.

We can use yum or dnf to install pcp-pmda-rpm on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install pcp-pmda-rpm.

Install pcp-pmda-rpm 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-rpm using dnf by running the following command:

sudo dnf -y install pcp-pmda-rpm

Install pcp-pmda-rpm 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-rpm using yum by running the following command:

sudo yum -y install pcp-pmda-rpm

How To Uninstall pcp-pmda-rpm on Rocky Linux 8

To uninstall only the pcp-pmda-rpm package we can use the following command:

sudo dnf remove pcp-pmda-rpm

pcp-pmda-rpm Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/091aaedac1e180066d3b8b8d33b30a64b8edec
/usr/lib/.build-id/45/4e31a8b989e12e2ef6a21d30fff02b86efbc59
/usr/libexec/pcp/pmdas/rpm
/usr/libexec/pcp/pmdas/rpm/Install
/usr/libexec/pcp/pmdas/rpm/Remove
/usr/libexec/pcp/pmdas/rpm/domain.h
/usr/libexec/pcp/pmdas/rpm/help
/usr/libexec/pcp/pmdas/rpm/pmda_rpm.so
/usr/libexec/pcp/pmdas/rpm/pmdarpm
/usr/libexec/pcp/pmdas/rpm/pmns
/usr/libexec/pcp/pmdas/rpm/root
/var/lib/pcp/pmdas/rpm
/var/lib/pcp/pmdas/rpm/Install
/var/lib/pcp/pmdas/rpm/Remove
/var/lib/pcp/pmdas/rpm/domain.h
/var/lib/pcp/pmdas/rpm/help
/var/lib/pcp/pmdas/rpm/pmda_rpm.so
/var/lib/pcp/pmdas/rpm/pmdarpm
/var/lib/pcp/pmdas/rpm/pmns
/var/lib/pcp/pmdas/rpm/root

References

Summary

In this tutorial we learn how to install pcp-pmda-rpm on Rocky Linux 8 using yum and dnf.