How To Install php-libvirt on Fedora 36

In this tutorial we learn how to install php-libvirt in Fedora 36. php-libvirt is PHP language bindings for Libvirt

Introduction

In this tutorial we learn how to install php-libvirt on Fedora 36.

What is php-libvirt

PHP language bindings for Libvirt API. For more details see

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

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

sudo dnf -y install php-libvirt

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

sudo yum -y install php-libvirt

How To Uninstall php-libvirt on Fedora 36

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

sudo dnf remove php-libvirt

php-libvirt Package Contents on Fedora 36

/etc/php.d/40-libvirt-php.ini
/usr/lib/.build-id
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/04e860435910ca0a1ec906b96e7e908aebfabf
/usr/lib64/php/modules/libvirt-php.so
/usr/share/doc/php-libvirt
/usr/share/licenses/php-libvirt
/usr/share/licenses/php-libvirt/COPYING

References

Summary

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