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

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

Introduction

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

What is pcp-pmda-json

This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting metrics output in JSON.

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

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

sudo dnf -y install pcp-pmda-json

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

sudo yum -y install pcp-pmda-json

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

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

sudo dnf remove pcp-pmda-json

pcp-pmda-json Package Contents on Rocky Linux 8

/etc/pcp/json
/etc/pcp/json/config.json
/usr/libexec/pcp/pmdas/json
/usr/libexec/pcp/pmdas/json/Install
/usr/libexec/pcp/pmdas/json/README
/usr/libexec/pcp/pmdas/json/Remove
/usr/libexec/pcp/pmdas/json/generate_ceph_metadata
/usr/libexec/pcp/pmdas/json/pmdajson.python
/var/lib/pcp/pmdas/json
/var/lib/pcp/pmdas/json/Install
/var/lib/pcp/pmdas/json/README
/var/lib/pcp/pmdas/json/Remove
/var/lib/pcp/pmdas/json/config.json
/var/lib/pcp/pmdas/json/generate_ceph_metadata
/var/lib/pcp/pmdas/json/pmdajson.python

References

Summary

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