How To Install libvirt-clients on Ubuntu 20.04

In this tutorial we learn how to install libvirt-clients on Ubuntu 20.04. libvirt-clients is Programs for the libvirt library Programs for the libvirt library Programs for the libvirt library

Introduction

In this tutorial we learn how to install libvirt-clients on Ubuntu 20.04.

What is libvirt-clients

libvirt-clients is:

Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). The library aims at providing a long term stable C API for different virtualization mechanisms. It currently supports QEMU, KVM, XEN, OpenVZ, LXC, and VirtualBox.

This package contains the libvirt shell virsh and other client binaries.

Package: libvirt-clients Architecture: amd64 Version: 6.0.0-0ubuntu8.3 Priority: optional Section: admin Source: libvirt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Libvirt Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1160 Depends: libc6 (>= 2.16), libgcc-s1 (>= 3.3.1), libglib2.0-0 (>= 2.28.0), libreadline8 (>= 6.0), libvirt0 (= 6.0.0-0ubuntu8.3), libxml2 (>= 2.9.2+really2.9.1+dfsg1-0.2), sensible-utils Suggests: libvirt-daemon Filename: pool/main/libv/libvirt/libvirt-clients_6.0.0-0ubuntu8.3_amd64.deb Size: 343012 MD5sum: 737ee0bb8a8aacd075eb41eac6a3d169 SHA1: b4075a17f29f910492767760f935b9ff2a78b0f4 SHA256: c9c1276cc943e356a3db04388f2659afd584d356ebb7e6bde8c515a9080d2844 SHA512: 97567287eb6618b319ba8b6b66d72d0976050e21d706ba4a0111964be4d5d5dd4a2f16eb5dc26a6dee0d1e5271be860996783e845bef14d3c448e45fb57e5afd Homepage: https://libvirt.org/ Description-en: Programs for the libvirt library Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). The library aims at providing a long term stable C API for different virtualization mechanisms. It currently supports QEMU, KVM, XEN, OpenVZ, LXC, and VirtualBox.

This package contains the libvirt shell virsh and other client binaries.

Package: libvirt-clients Architecture: amd64 Version: 6.0.0-0ubuntu8 Priority: optional Section: admin Source: libvirt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Libvirt Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1160 Depends: libc6 (>= 2.16), libgcc-s1 (>= 3.3.1), libglib2.0-0 (>= 2.28.0), libreadline8 (>= 6.0), libvirt0 (= 6.0.0-0ubuntu8), libxml2 (>= 2.9.2+really2.9.1+dfsg1-0.2), sensible-utils Suggests: libvirt-daemon Filename: pool/main/libv/libvirt/libvirt-clients_6.0.0-0ubuntu8_amd64.deb Size: 343556 MD5sum: f7a558927ede68fdcd3fa979dabf31ec SHA1: ccb7bb8b83b5afb3df0e717c11770bd770eb5a10 SHA256: 5ccd0151453f04254006d905a58512c6b66869a0dbb4c8ef7229a020dea1c504 Homepage: https://libvirt.org/ Description-en: Programs for the libvirt library Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). The library aims at providing a long term stable C API for different virtualization mechanisms. It currently supports QEMU, KVM, XEN, OpenVZ, LXC, and VirtualBox.

This package contains the libvirt shell virsh and other client binaries.

There are three methods to install libvirt-clients on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libvirt-clients Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libvirt-clients using apt-get by running the following command:

sudo apt-get -y install libvirt-clients

Install libvirt-clients Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libvirt-clients using apt by running the following command:

sudo apt -y install libvirt-clients

Install libvirt-clients Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libvirt-clients using aptitude by running the following command:

sudo aptitude -y install libvirt-clients

How To Uninstall libvirt-clients on Ubuntu 20.04

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

sudo apt-get remove libvirt-clients

Uninstall libvirt-clients And Its Dependencies

To uninstall libvirt-clients and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libvirt-clients

Remove libvirt-clients Configurations and Data

To remove libvirt-clients configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libvirt-clients

Remove libvirt-clients configuration, data, and all of its dependencies

We can use the following command to remove libvirt-clients configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libvirt-clients

References

Summary

In this tutorial we learn how to install libvirt-clients package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.