How To Install libvirt0 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libvirt0
on Ubuntu 20.04.
What is libvirt0
libvirt0 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.
Package: libvirt0 Architecture: amd64 Version: 6.0.0-0ubuntu8.3 Multi-Arch: same Priority: optional Section: devel 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: 5744 Depends: libacl1 (>= 2.2.23), libapparmor1 (>= 2.6~devel), libaudit1 (>= 1:2.2.1), libc6 (>= 2.14), libcap-ng0 (>= 0.7.9), libcurl3-gnutls (>= 7.28.0), libdbus-1-3 (>= 1.9.14), libdevmapper1.02.1 (>= 2:1.02.97), libgcc-s1 (>= 3.3.1), libglib2.0-0 (>= 2.57.2), libgnutls30 (>= 3.6.12), libnl-3-200 (>= 3.2.7), libnuma1 (>= 2.0.11), libsasl2-2 (>= 2.1.27+dfsg), libselinux1 (>= 2.1.12), libxml2 (>= 2.9.2+really2.9.1+dfsg1-0.2), libyajl2 (>= 2.0.4) Recommends: lvm2 Breaks: libvirt-daemon (« 4.10.0-2~), selinux-policy-default (« 2:2.20131214-1~), selinux-policy-mls (« 2:2.20131214-1~) Replaces: libvirt-daemon (« 4.10.0-2~) Filename: pool/main/libv/libvirt/libvirt0_6.0.0-0ubuntu8.3_amd64.deb Size: 1441228 MD5sum: 4e1329bc5ff048b90c9aca562c9f967f SHA1: ca386fe7e8078a2612c64a5ba4ab3475da1c3b4c SHA256: 222b0f036a4244c3b34b148c410ec1e27a3ef2dc91d64ad1d18f0dabe8d0bf1f SHA512: 98fc9d20a3ea89c8a8784abfe2a85cc204bdd48c08545f92707cdb79083015645d0171c32ee146cef081ac1720640aa9fb2e0bcdf37070b5530a8028ccdc1014 Homepage: https://libvirt.org/ Description-en: library for interfacing with different virtualization systems 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.
Package: libvirt0 Architecture: amd64 Version: 6.0.0-0ubuntu8 Multi-Arch: same Priority: optional Section: devel 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: 5736 Depends: libacl1 (>= 2.2.23), libapparmor1 (>= 2.6~devel), libaudit1 (>= 1:2.2.1), libc6 (>= 2.14), libcap-ng0 (>= 0.7.9), libcurl3-gnutls (>= 7.28.0), libdbus-1-3 (>= 1.9.14), libdevmapper1.02.1 (>= 2:1.02.97), libgcc-s1 (>= 3.3.1), libglib2.0-0 (>= 2.57.2), libgnutls30 (>= 3.6.12), libnl-3-200 (>= 3.2.7), libnuma1 (>= 2.0.11), libsasl2-2 (>= 2.1.27+dfsg), libselinux1 (>= 2.1.12), libxml2 (>= 2.9.2+really2.9.1+dfsg1-0.2), libyajl2 (>= 2.0.4) Recommends: lvm2 Breaks: libvirt-daemon (« 4.10.0-2~), selinux-policy-default (« 2:2.20131214-1~), selinux-policy-mls (« 2:2.20131214-1~) Replaces: libvirt-daemon (« 4.10.0-2~) Filename: pool/main/libv/libvirt/libvirt0_6.0.0-0ubuntu8_amd64.deb Size: 1443932 MD5sum: 1888be179ac65a6f1feb98cf5e7bbcd4 SHA1: 5aefdbab585d10d24e11d5a5f19e197a46fcd3b8 SHA256: 3d44a10ba0caac12f2dbe21e95f744939caa8ae457340d4a1fe82933c260e68b Homepage: https://libvirt.org/ Description-en: library for interfacing with different virtualization systems 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.
There are three methods to install libvirt0
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 libvirt0 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libvirt0
using apt-get
by running the following command:
sudo apt-get -y install libvirt0
Install libvirt0 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libvirt0
using apt
by running the following command:
sudo apt -y install libvirt0
Install libvirt0 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 libvirt0
using aptitude
by running the following command:
sudo aptitude -y install libvirt0
How To Uninstall libvirt0 on Ubuntu 20.04
To uninstall only the libvirt0
package we can use the following command:
sudo apt-get remove libvirt0
Uninstall libvirt0 And Its Dependencies
To uninstall libvirt0
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libvirt0
Remove libvirt0 Configurations and Data
To remove libvirt0
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libvirt0
Remove libvirt0 configuration, data, and all of its dependencies
We can use the following command to remove libvirt0
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libvirt0
References
Summary
In this tutorial we learn how to install libvirt0
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.