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

In this tutorial we learn how to install pcp-pmda-mailq on Rocky Linux 8. pcp-pmda-mailq is Performance Co-Pilot (PCP) metrics for the sendmail queue

Introduction

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

What is pcp-pmda-mailq

This package contains the PCP Performance Metrics Domain Agent (PMDA) for collecting metrics about email queues managed by sendmail.

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

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

sudo dnf -y install pcp-pmda-mailq

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

sudo yum -y install pcp-pmda-mailq

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

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

sudo dnf remove pcp-pmda-mailq

pcp-pmda-mailq Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/b6/1bf8cdc15a7960f83ed9a0ab9ecbfdd6fd4fbe
/usr/libexec/pcp/pmdas/mailq
/usr/libexec/pcp/pmdas/mailq/Install
/usr/libexec/pcp/pmdas/mailq/README
/usr/libexec/pcp/pmdas/mailq/Remove
/usr/libexec/pcp/pmdas/mailq/domain.h
/usr/libexec/pcp/pmdas/mailq/help
/usr/libexec/pcp/pmdas/mailq/pmdamailq
/usr/libexec/pcp/pmdas/mailq/pmns
/usr/libexec/pcp/pmdas/mailq/root
/var/lib/pcp/pmdas/mailq
/var/lib/pcp/pmdas/mailq/Install
/var/lib/pcp/pmdas/mailq/README
/var/lib/pcp/pmdas/mailq/Remove
/var/lib/pcp/pmdas/mailq/domain.h
/var/lib/pcp/pmdas/mailq/help
/var/lib/pcp/pmdas/mailq/pmdamailq
/var/lib/pcp/pmdas/mailq/pmns
/var/lib/pcp/pmdas/mailq/root

References

Summary

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