How To Install libvirt-daemon on Rocky Linux 8

In this tutorial we learn how to install libvirt-daemon on Rocky Linux 8. libvirt-daemon is Server side daemon and supporting files for libvirt library

Introduction

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

What is libvirt-daemon

Server side daemon required to manage the virtualization capabilities of recent versions of Linux. Requires a hypervisor specific sub-RPM for specific drivers.

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

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

sudo dnf -y install libvirt-daemon

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

sudo yum -y install libvirt-daemon

How To Uninstall libvirt-daemon on Rocky Linux 8

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

sudo dnf remove libvirt-daemon

libvirt-daemon Package Contents on Rocky Linux 8

/etc/libvirt
/etc/libvirt/libvirtd.conf
/etc/libvirt/virtlockd.conf
/etc/libvirt/virtlogd.conf
/etc/libvirt/virtproxyd.conf
/etc/logrotate.d/libvirtd
/etc/sasl2/libvirt.conf
/etc/sysconfig/libvirtd
/etc/sysconfig/virtlockd
/etc/sysconfig/virtlogd
/run/libvirt
/usr/lib/.build-id
/usr/lib/.build-id/29
/usr/lib/.build-id/29/0d42f7356fe9f6524c6ecf06564e6d357ee065
/usr/lib/.build-id/37
/usr/lib/.build-id/37/8bce51f61cda67f29758a4dedc4907c00a3662
/usr/lib/.build-id/46
/usr/lib/.build-id/46/f8f61a51a9a51a71c4a56425326b97a97e7e7f
/usr/lib/.build-id/48
/usr/lib/.build-id/48/55dd10fd9b313aa4226da720caa454103eae69
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/b5bc26f03e2cc95bc929217fe40bf0b5453ce5
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/5d2707c7dcca3a3700935e276eff71cdee7592
/usr/lib/sysctl.d/60-libvirtd.conf
/usr/lib/systemd/system/libvirtd-admin.socket
/usr/lib/systemd/system/libvirtd-ro.socket
/usr/lib/systemd/system/libvirtd-tcp.socket
/usr/lib/systemd/system/libvirtd-tls.socket
/usr/lib/systemd/system/libvirtd.service
/usr/lib/systemd/system/libvirtd.socket
/usr/lib/systemd/system/virt-guest-shutdown.target
/usr/lib/systemd/system/virtlockd-admin.socket
/usr/lib/systemd/system/virtlockd.service
/usr/lib/systemd/system/virtlockd.socket
/usr/lib/systemd/system/virtlogd-admin.socket
/usr/lib/systemd/system/virtlogd.service
/usr/lib/systemd/system/virtlogd.socket
/usr/lib/systemd/system/virtproxyd-admin.socket
/usr/lib/systemd/system/virtproxyd-ro.socket
/usr/lib/systemd/system/virtproxyd-tcp.socket
/usr/lib/systemd/system/virtproxyd-tls.socket
/usr/lib/systemd/system/virtproxyd.service
/usr/lib/systemd/system/virtproxyd.socket
/usr/lib64/libvirt
/usr/lib64/libvirt/connection-driver
/usr/lib64/libvirt/lock-driver
/usr/lib64/libvirt/lock-driver/lockd.so
/usr/libexec/libvirt_iohelper
/usr/sbin/libvirtd
/usr/sbin/virtlockd
/usr/sbin/virtlogd
/usr/sbin/virtproxyd
/usr/share/augeas/lenses/libvirt_lockd.aug
/usr/share/augeas/lenses/libvirtd.aug
/usr/share/augeas/lenses/tests/test_libvirt_lockd.aug
/usr/share/augeas/lenses/tests/test_libvirtd.aug
/usr/share/augeas/lenses/tests/test_virtlockd.aug
/usr/share/augeas/lenses/tests/test_virtlogd.aug
/usr/share/augeas/lenses/tests/test_virtproxyd.aug
/usr/share/augeas/lenses/virtlockd.aug
/usr/share/augeas/lenses/virtlogd.aug
/usr/share/augeas/lenses/virtproxyd.aug
/usr/share/libvirt
/usr/share/man/man7/virkeycode-atset1.7.gz
/usr/share/man/man7/virkeycode-atset2.7.gz
/usr/share/man/man7/virkeycode-atset3.7.gz
/usr/share/man/man7/virkeycode-linux.7.gz
/usr/share/man/man7/virkeycode-osx.7.gz
/usr/share/man/man7/virkeycode-qnum.7.gz
/usr/share/man/man7/virkeycode-usb.7.gz
/usr/share/man/man7/virkeycode-win32.7.gz
/usr/share/man/man7/virkeycode-xtkbd.7.gz
/usr/share/man/man7/virkeyname-linux.7.gz
/usr/share/man/man7/virkeyname-osx.7.gz
/usr/share/man/man7/virkeyname-win32.7.gz
/usr/share/man/man8/libvirtd.8.gz
/usr/share/man/man8/virtlockd.8.gz
/usr/share/man/man8/virtlogd.8.gz
/usr/share/polkit-1/actions/org.libvirt.api.policy
/usr/share/polkit-1/actions/org.libvirt.unix.policy
/usr/share/polkit-1/rules.d/50-libvirt.rules
/var/cache/libvirt
/var/lib/libvirt/boot
/var/lib/libvirt/filesystems
/var/lib/libvirt/images
/var/log/libvirt

References

Summary

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