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

In this tutorial we learn how to install pcp-pmda-bpftrace on Rocky Linux 8. pcp-pmda-bpftrace is Performance Co-Pilot (PCP) metrics from bpftrace scripts

Introduction

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

What is pcp-pmda-bpftrace

This package contains the PCP Performance Metrics Domain Agent (PMDA) for extracting performance metrics from bpftrace scripts.

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

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

sudo dnf -y install pcp-pmda-bpftrace

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

sudo yum -y install pcp-pmda-bpftrace

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

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

sudo dnf remove pcp-pmda-bpftrace

pcp-pmda-bpftrace Package Contents on Rocky Linux 8

/etc/pcp/bpftrace
/etc/pcp/bpftrace/autostart
/etc/pcp/bpftrace/autostart/biolatency.bt
/etc/pcp/bpftrace/autostart/runqlat.bt
/etc/pcp/bpftrace/bpftrace.conf
/usr/libexec/pcp/pmdas/bpftrace
/usr/libexec/pcp/pmdas/bpftrace/Install
/usr/libexec/pcp/pmdas/bpftrace/README.md
/usr/libexec/pcp/pmdas/bpftrace/Remove
/usr/libexec/pcp/pmdas/bpftrace/bpftrace
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/__init__.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/cluster.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/models.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/parser.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/pmda.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/process_manager.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/service.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/uncached_indom.py
/usr/libexec/pcp/pmdas/bpftrace/bpftrace/utils.py
/usr/libexec/pcp/pmdas/bpftrace/pmdabpftrace.python
/var/lib/pcp/pmdas/bpftrace
/var/lib/pcp/pmdas/bpftrace/Install
/var/lib/pcp/pmdas/bpftrace/README.md
/var/lib/pcp/pmdas/bpftrace/Remove
/var/lib/pcp/pmdas/bpftrace/autostart
/var/lib/pcp/pmdas/bpftrace/autostart/biolatency.bt
/var/lib/pcp/pmdas/bpftrace/autostart/runqlat.bt
/var/lib/pcp/pmdas/bpftrace/bpftrace
/var/lib/pcp/pmdas/bpftrace/bpftrace.conf
/var/lib/pcp/pmdas/bpftrace/bpftrace/__init__.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/cluster.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/models.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/parser.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/pmda.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/process_manager.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/service.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/uncached_indom.py
/var/lib/pcp/pmdas/bpftrace/bpftrace/utils.py
/var/lib/pcp/pmdas/bpftrace/pmdabpftrace.python

References

Summary

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