How To Install nbdkit-plugin-libvirt on CentOS 7

In this tutorial we learn how to install nbdkit-plugin-libvirt on CentOS 7. nbdkit-plugin-libvirt is Libvirt plugin for nbdkit

Introduction

In this tutorial we learn how to install nbdkit-plugin-libvirt on CentOS 7.

What is nbdkit-plugin-libvirt

This package is a libvirt plugin for nbdkit. It lets you access libvirt guest disks readonly. It is implemented using the libvirt virDomainBlockPeek API.

We can use yum or dnf to install nbdkit-plugin-libvirt on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nbdkit-plugin-libvirt.

Install nbdkit-plugin-libvirt on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install nbdkit-plugin-libvirt using yum by running the following command:

sudo yum -y install nbdkit-plugin-libvirt

Install nbdkit-plugin-libvirt on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install nbdkit-plugin-libvirt using dnf by running the following command:

sudo dnf -y install nbdkit-plugin-libvirt

How To Uninstall nbdkit-plugin-libvirt on CentOS 7

To uninstall only the nbdkit-plugin-libvirt package we can use the following command:

sudo dnf remove nbdkit-plugin-libvirt

References

Summary

In this tutorial we learn how to install nbdkit-plugin-libvirt on CentOS 7 using yum and dnf.