How To Install vagrant on Debian 10

Learn how to install vagrant on Debian 10 with this tutorial. vagrant is Tool for building and distributing virtualized development environments

Introduction

In this tutorial we learn how to install vagrant on Debian 10.

What is vagrant

vagrant is:

This package provides the tools to create and configure lightweight, reproducible, and portable virtual environments.

Vagrant uses Oracle??s VirtualBox to create its virtual machines and then uses Chef or Puppet to provision them.

There are three methods to install vagrant on Debian 10. 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 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 using apt-get by running the following command:

sudo apt-get -y install vagrant

Install vagrant Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install vagrant

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

sudo aptitude -y install vagrant

How To Uninstall vagrant on Debian 10

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

sudo apt-get remove vagrant

Uninstall vagrant And Its Dependencies

To uninstall vagrant and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove vagrant

Remove vagrant Configurations and Data

To remove vagrant configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge vagrant

Remove vagrant configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge vagrant

Dependencies

vagrant have the following dependencies:

References

Summary

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