How To Install pcp-pmda-postgresql on Fedora 36

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

Introduction

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

What is pcp-pmda-postgresql

This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting metrics about the PostgreSQL database.

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

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

sudo dnf -y install pcp-pmda-postgresql

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

sudo yum -y install pcp-pmda-postgresql

How To Uninstall pcp-pmda-postgresql on Fedora 36

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

sudo dnf remove pcp-pmda-postgresql

pcp-pmda-postgresql Package Contents on Fedora 36

/etc/pcp/postgresql
/etc/pcp/postgresql/pmdapostgresql.conf
/usr/lib/tmpfiles.d/pcp-pmda-postgresql.conf
/usr/libexec/pcp/pmdas/postgresql
/usr/libexec/pcp/pmdas/postgresql/Install
/usr/libexec/pcp/pmdas/postgresql/Remove
/usr/libexec/pcp/pmdas/postgresql/Upgrade
/usr/libexec/pcp/pmdas/postgresql/pmdapostgresql.python
/var/lib/pcp/pmdas/postgresql
/var/lib/pcp/pmdas/postgresql/Install
/var/lib/pcp/pmdas/postgresql/Remove
/var/lib/pcp/pmdas/postgresql/Upgrade
/var/lib/pcp/pmdas/postgresql/pmdapostgresql.conf
/var/lib/pcp/pmdas/postgresql/pmdapostgresql.python

References

Summary

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