How To Install virtinst on Ubuntu 20.04
Introduction
In this tutorial we learn how to install virtinst
on Ubuntu 20.04.
What is virtinst
virtinst is:
Virtinst is a set of commandline tools to create virtual machines using libvirt:
virt-install: provision new virtual machines virt-clone: clone existing virtual machines virt-xml: edit libvirt XML using command line options. virt-convert: convert virtual machines between formats
Package: virtinst Architecture: all Version: 1:2.2.1-3ubuntu2 Priority: extra Section: universe/admin Source: virt-manager Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Libvirt Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 817 Depends: e2fsprogs, genisoimage, gir1.2-libosinfo-1.0, python3, python3-distutils, python3-gi, python3-libvirt (>= 0.4.6), python3-libxml2, python3-requests Recommends: qemu-utils, virt-viewer Filename: pool/universe/v/virt-manager/virtinst_2.2.1-3ubuntu2_all.deb Size: 183208 MD5sum: 78a209ff4729628c556b29cdb53affb4 SHA1: 6a6709e0670bada08b3dd38dc79024c46754c41b SHA256: c6475748abe161c7005f141f984791c030030a7156894941ad4a28bfef5bf0fd Homepage: http://virt-manager.org/ Description-en: Programs to create and clone virtual machines Virtinst is a set of commandline tools to create virtual machines using libvirt:
virt-install: provision new virtual machines virt-clone: clone existing virtual machines virt-xml: edit libvirt XML using command line options. virt-convert: convert virtual machines between formats
There are three methods to install virtinst
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 virtinst Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install virtinst
using apt-get
by running the following command:
sudo apt-get -y install virtinst
Install virtinst Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install virtinst
using apt
by running the following command:
sudo apt -y install virtinst
Install virtinst 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 virtinst
using aptitude
by running the following command:
sudo aptitude -y install virtinst
How To Uninstall virtinst on Ubuntu 20.04
To uninstall only the virtinst
package we can use the following command:
sudo apt-get remove virtinst
Uninstall virtinst And Its Dependencies
To uninstall virtinst
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove virtinst
Remove virtinst Configurations and Data
To remove virtinst
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge virtinst
Remove virtinst configuration, data, and all of its dependencies
We can use the following command to remove virtinst
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge virtinst
References
Summary
In this tutorial we learn how to install virtinst
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.