How To Install libvirt-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libvirt-dev
on Ubuntu 20.04.
What is libvirt-dev
libvirt-dev 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 header files and static libraries which are needed for developing the applications with libvirt.
Package: libvirt-dev Architecture: amd64 Version: 6.0.0-0ubuntu8.3 Multi-Arch: same Priority: optional Section: universe/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: 1520 Depends: libvirt0 (= 6.0.0-0ubuntu8.3), libxen-dev Recommends: pkg-config Filename: pool/universe/libv/libvirt/libvirt-dev_6.0.0-0ubuntu8.3_amd64.deb Size: 160716 MD5sum: 887fbe29a8b67c29086ed65dc5ebac5f SHA1: a81951b3e6d6e490ab14553d63eaf007dc3d5be6 SHA256: ba110ea1cf770b9e245ae4b190a696a0988b6ef2f87320dbb025ceb8b5364a94 SHA512: 9f86ac2dacf3936b36be78f866668a894c5ac525e5c54383522861b1e39cfac7f8900e6790badca0f8789cdd17eb90aa19bd3b58d757350109ea241d95ab10e1 Homepage: https://libvirt.org/ Description-en: development files 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 header files and static libraries which are needed for developing the applications with libvirt.
Package: libvirt-dev Architecture: amd64 Version: 6.0.0-0ubuntu8 Multi-Arch: same Priority: optional Section: universe/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: 1520 Depends: libvirt0 (= 6.0.0-0ubuntu8), libxen-dev Recommends: pkg-config Filename: pool/universe/libv/libvirt/libvirt-dev_6.0.0-0ubuntu8_amd64.deb Size: 160676 MD5sum: 8131f26539b596c4dfd97c9c3addb4c0 SHA1: abd2fc9572aa7c3cabce5e9f7f42d5802a141830 SHA256: e9703c33bd8ac6ad034813553f9dce5c2845707683795f12545e83c4a06a9be1 Homepage: https://libvirt.org/ Description-en: development files 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 header files and static libraries which are needed for developing the applications with libvirt.
There are three methods to install libvirt-dev
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-dev 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-dev
using apt-get
by running the following command:
sudo apt-get -y install libvirt-dev
Install libvirt-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libvirt-dev
using apt
by running the following command:
sudo apt -y install libvirt-dev
Install libvirt-dev 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-dev
using aptitude
by running the following command:
sudo aptitude -y install libvirt-dev
How To Uninstall libvirt-dev on Ubuntu 20.04
To uninstall only the libvirt-dev
package we can use the following command:
sudo apt-get remove libvirt-dev
Uninstall libvirt-dev And Its Dependencies
To uninstall libvirt-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libvirt-dev
Remove libvirt-dev Configurations and Data
To remove libvirt-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libvirt-dev
Remove libvirt-dev configuration, data, and all of its dependencies
We can use the following command to remove libvirt-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libvirt-dev
References
Summary
In this tutorial we learn how to install libvirt-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.