How To Install libvirt-client on Rocky Linux 8

In this tutorial we learn how to install libvirt-client on Rocky Linux 8. libvirt-client is Client side utilities of the libvirt library

Introduction

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

What is libvirt-client

The client binaries needed to access the virtualization capabilities of recent versions of Linux (and other OSes).

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

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

sudo dnf -y install libvirt-client

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

sudo yum -y install libvirt-client

How To Uninstall libvirt-client on Rocky Linux 8

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

sudo dnf remove libvirt-client

libvirt-client Package Contents on Rocky Linux 8

/etc/sysconfig/libvirt-guests
/usr/bin/virsh
/usr/bin/virt-host-validate
/usr/bin/virt-pki-validate
/usr/bin/virt-xml-validate
/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/c912bc4ebeac7c5d83e4765e8a15f781372f48
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/70efa54f5eec821155b2c9630a0ebd39a8b3b8
/usr/lib/systemd/system/libvirt-guests.service
/usr/libexec/libvirt-guests.sh
/usr/share/bash-completion/completions/virsh
/usr/share/man/man1/virsh.1.gz
/usr/share/man/man1/virt-host-validate.1.gz
/usr/share/man/man1/virt-pki-validate.1.gz
/usr/share/man/man1/virt-xml-validate.1.gz
/usr/share/systemtap/tapset/libvirt_functions.stp
/usr/share/systemtap/tapset/libvirt_probes-64.stp
/usr/share/systemtap/tapset/libvirt_qemu_probes-64.stp

References

Summary

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