How To Install pcp-pmda-mongodb on Fedora 36

In this tutorial we learn how to install pcp-pmda-mongodb in Fedora 36. pcp-pmda-mongodb is Performance Co-Pilot (PCP) metrics for MongoDB

Introduction

In this tutorial we learn how to install pcp-pmda-mongodb on Fedora 36.

What is pcp-pmda-mongodb

This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting metrics from MongoDB.

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

Install pcp-pmda-mongodb on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install pcp-pmda-mongodb using dnf by running the following command:

sudo dnf -y install pcp-pmda-mongodb

Install pcp-pmda-mongodb on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pcp-pmda-mongodb using yum by running the following command:

sudo yum -y install pcp-pmda-mongodb

How To Uninstall pcp-pmda-mongodb on Fedora 36

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

sudo dnf remove pcp-pmda-mongodb

pcp-pmda-mongodb Package Contents on Fedora 36

/etc/pcp/mongodb
/etc/pcp/mongodb/mongodb.conf
/usr/lib/tmpfiles.d/pcp-pmda-mongodb.conf
/usr/libexec/pcp/pmdas/mongodb
/usr/libexec/pcp/pmdas/mongodb/Install
/usr/libexec/pcp/pmdas/mongodb/Remove
/usr/libexec/pcp/pmdas/mongodb/pmdamongodb.python
/var/lib/pcp/pmdas/mongodb
/var/lib/pcp/pmdas/mongodb/Install
/var/lib/pcp/pmdas/mongodb/Remove
/var/lib/pcp/pmdas/mongodb/mongodb.conf
/var/lib/pcp/pmdas/mongodb/pmdamongodb.python

References

Summary

In this tutorial we learn how to install pcp-pmda-mongodb on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).