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

In this tutorial we learn how to install pcp-pmda-perfevent on Rocky Linux 8. pcp-pmda-perfevent is Performance Co-Pilot (PCP) metrics for hardware counters

Introduction

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

What is pcp-pmda-perfevent

This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting hardware counters statistics through libpfm.

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

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

sudo dnf -y install pcp-pmda-perfevent

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

sudo yum -y install pcp-pmda-perfevent

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

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

sudo dnf remove pcp-pmda-perfevent

pcp-pmda-perfevent Package Contents on Rocky Linux 8

/etc/pcp/perfevent
/etc/pcp/perfevent/perfevent.conf
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/5b9ed646d8ee130dc7cb095bfe64cccd3b39e5
/usr/lib/.build-id/ac/7107dfb7c224abbaa75ade3da2799b88a3c2d9
/usr/libexec/pcp/pmdas/perfevent
/usr/libexec/pcp/pmdas/perfevent/Install
/usr/libexec/pcp/pmdas/perfevent/Remove
/usr/libexec/pcp/pmdas/perfevent/Upgrade
/usr/libexec/pcp/pmdas/perfevent/domain.h
/usr/libexec/pcp/pmdas/perfevent/help
/usr/libexec/pcp/pmdas/perfevent/perfalloc
/usr/libexec/pcp/pmdas/perfevent/perfevent-makerewrite.pl
/usr/libexec/pcp/pmdas/perfevent/pmdaperfevent
/usr/libexec/pcp/pmdas/perfevent/pmns
/usr/libexec/pcp/pmdas/perfevent/root
/var/lib/pcp/pmdas/perfevent
/var/lib/pcp/pmdas/perfevent/Install
/var/lib/pcp/pmdas/perfevent/Remove
/var/lib/pcp/pmdas/perfevent/Upgrade
/var/lib/pcp/pmdas/perfevent/domain.h
/var/lib/pcp/pmdas/perfevent/help
/var/lib/pcp/pmdas/perfevent/perfalloc
/var/lib/pcp/pmdas/perfevent/perfevent-makerewrite.pl
/var/lib/pcp/pmdas/perfevent/perfevent.conf
/var/lib/pcp/pmdas/perfevent/pmdaperfevent
/var/lib/pcp/pmdas/perfevent/pmns
/var/lib/pcp/pmdas/perfevent/root

References

Summary

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