How To Install virtinst on Debian 9

In this tutorial we learn how to install virtinst on Debian 9. virtinst is Programs to create and clone virtual machines

Introduction

In this tutorial we learn how to install virtinst on Debian 9.

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-image: create virtual machines from an image description virt-convert: convert virtual machines between formats

There are three methods to install virtinst on Debian 9. 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 Debian. 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 Debian 9

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 Debian 9, we can use the command below:

sudo apt-get -y autoremove virtinst

Remove virtinst Configurations and Data

To remove virtinst configuration and data from Debian 9 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

Dependencies

virtinst have the following dependencies:

References

Summary

In this tutorial we learn how to install virtinst package on Debian 9 using different package management tools: apt, apt-get and aptitude.