How To Install collectd-virt on Fedora 36

In this tutorial we learn how to install collectd-virt in Fedora 36. collectd-virt is Libvirt plugin for collectd

Introduction

In this tutorial we learn how to install collectd-virt on Fedora 36.

What is collectd-virt

This plugin collects information from virtualized guests.

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

Install collectd-virt 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 collectd-virt using dnf by running the following command:

sudo dnf -y install collectd-virt

Install collectd-virt 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 collectd-virt using yum by running the following command:

sudo yum -y install collectd-virt

How To Uninstall collectd-virt on Fedora 36

To uninstall only the collectd-virt package we can use the following command:

sudo dnf remove collectd-virt

collectd-virt Package Contents on Fedora 36

/etc/collectd.d/libvirt.conf
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/f8b2f76d007cea72826a7dc7d34e135b69bae5
/usr/lib64/collectd/virt.so

References

Summary

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