How To Install libvirt-client on CentOS 8
Introduction
In this tutorial we learn how to install libvirt-client
on CentOS 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 CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the libvirt-client
package we can use the following command:
sudo dnf remove libvirt-client
libvirt-client Package Contents on CentOS 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/00
/usr/lib/.build-id/00/9e54eacd08373fec72bc93f115d41c844f2abc
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/043f603fe4c4c41723f67e65e31e07e7fce59f
/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 CentOS 8 using yum and dnf.