How To Install vmdebootstrap on Ubuntu 18.04

In this tutorial we learn how to install vmdebootstrap on Ubuntu 18.04. vmdebootstrap is Bootstrap Debian into a (virtual machine) disk image

Introduction

In this tutorial we learn how to install vmdebootstrap on Ubuntu 18.04.

What is vmdebootstrap

vmdebootstrap is:

vmdebootstrap is a wrapper around debootstrap to install Debian into a disk image, which can be used with a virtual machine (such as KVM).

syslinux and grub2 bootloaders can be supported, depending on the distribution and the architecture. An example of setting up u-boot for armhf on a beaglebone-black is included.

This package also includes documentation on using vmdebootstrap to create installation images and live images.

There are three methods to install vmdebootstrap on Ubuntu 18.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 vmdebootstrap Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install vmdebootstrap

Install vmdebootstrap Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install vmdebootstrap using apt by running the following command:

sudo apt -y install vmdebootstrap

Install vmdebootstrap 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 vmdebootstrap using aptitude by running the following command:

sudo aptitude -y install vmdebootstrap

How To Uninstall vmdebootstrap on Ubuntu 18.04

To uninstall only the vmdebootstrap package we can use the following command:

sudo apt-get remove vmdebootstrap

Uninstall vmdebootstrap And Its Dependencies

To uninstall vmdebootstrap and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove vmdebootstrap

Remove vmdebootstrap Configurations and Data

To remove vmdebootstrap configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge vmdebootstrap

Remove vmdebootstrap configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge vmdebootstrap

References

Summary

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