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

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

Introduction

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

What is pcp-pmda-libvirt

This package contains the PCP Performance Metrics Domain Agent (PMDA) for extracting virtualisation statistics from libvirt about behaviour of guest and hypervisor machines.

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

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

sudo dnf -y install pcp-pmda-libvirt

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

sudo yum -y install pcp-pmda-libvirt

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

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

sudo dnf remove pcp-pmda-libvirt

pcp-pmda-libvirt Package Contents on Rocky Linux 8

/etc/pcp/libvirt
/etc/pcp/libvirt/libvirt.conf
/usr/libexec/pcp/pmdas/libvirt
/usr/libexec/pcp/pmdas/libvirt/Install
/usr/libexec/pcp/pmdas/libvirt/Remove
/usr/libexec/pcp/pmdas/libvirt/connect
/usr/libexec/pcp/pmdas/libvirt/pmdalibvirt.python
/var/lib/pcp/pmdas/libvirt
/var/lib/pcp/pmdas/libvirt/Install
/var/lib/pcp/pmdas/libvirt/Remove
/var/lib/pcp/pmdas/libvirt/connect
/var/lib/pcp/pmdas/libvirt/libvirt.conf
/var/lib/pcp/pmdas/libvirt/pmdalibvirt.python

References

Summary

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