In this post, I’d like to show how to install Vagrant on Ubuntu 16.04. We may have 2 approaches to install Vagrant on Ubuntu.

  • Use apt-get to install Vagrant from the repository of the distribution
  • Download proper binary package from the Vagrant download page and install it normally.

We will try both of them.

Install Vagrant On Ubuntu 16.04

Install Vagrant On Ubuntu 16.04

1. Use apt-get to install Vagrant

We will use apt-get to install Vagrant from distribution repository. Note that if we use this approach, we may not have the latest version of Vagrant as the second way.

1.1. Update the packages info from repositories

1.2. Check the Vagrant package info (optional)

We can check for the information of the Vagrant package currently.

The output should be similar to:

Note that the current version is 1.8.1+dfsg-1

1.3. Install Vagrant

You have to confirm “Y” when you’re asked.

1.4. Verify the installation.

We can verify the installation by issue command to check the installed version of Vagrant.

We have installed Vagrant 1.8.1 on our Ubuntu 16.04

2. Download Vagrant package and install it manually.

Vagrant download page provides the latest version of Vagrant. The current version is 1.8.5, both 32-bit and 64-bit. You should select proper version for your machine. Currently, I will download the 64-bit version. Note that we will download the package built for Debian.

After finishing the download, we can install it by:

Vagrant will be installed quickly after that. We can verify the installation by issue a command to check its version:

The output on my terminal:

We have installed Vagrant 1.8.5 on Ubuntu 16.04 successfully.

3. Uninstall Vagrant on Ubuntu 16.04

If you install Vagrant by using apt-get, you can issue below command to uninstall it.

Confirm “Y” when you are asked.

If you install Vagrant by using debian package, you can uninstall it by:

4. Conclusion

We have tried to install Vagrant on Ubuntu 16.04. We can select one of two approaches to do that. Note that both of 2 approaches are both simple. However, with the first one, we may not have desired version of Vagrant installed on our machine. For the second approaches, we can download exactly version we desire and install it. After installing Vagrant, you may need to get familiar with Vagrant command line interface. If you want to kind a of cheatsheet, you can refer to my previous post: Basic Vagrant Commands.

0 0 vote
Article Rating