How To Install vagrant-mutate on Ubuntu 18.04

In this tutorial we learn how to install vagrant-mutate on Ubuntu 18.04. vagrant-mutate is convert vagrant boxes to work with different providers

Introduction

In this tutorial we learn how to install vagrant-mutate on Ubuntu 18.04.

What is vagrant-mutate

vagrant-mutate is:

Vagrant-mutate is a vagrant plugin to convert Vagrant .box files to work with different providers. It works with URLs, files, and boxes that are already setup in Vagrant.

Supported Conversions:

  • VirtualBox to KVM
  • VirtualBox to libvirt
  • VirtualBox to bhyve
  • libvirt to KVM
  • KVM to libvirt

There are three methods to install vagrant-mutate 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 vagrant-mutate Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install vagrant-mutate

Install vagrant-mutate Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install vagrant-mutate

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

sudo aptitude -y install vagrant-mutate

How To Uninstall vagrant-mutate on Ubuntu 18.04

To uninstall only the vagrant-mutate package we can use the following command:

sudo apt-get remove vagrant-mutate

Uninstall vagrant-mutate And Its Dependencies

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

sudo apt-get -y autoremove vagrant-mutate

Remove vagrant-mutate Configurations and Data

To remove vagrant-mutate configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge vagrant-mutate

Remove vagrant-mutate configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge vagrant-mutate

References

Summary

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