How to install vagrant on ubuntu?

by damian_mills , in category: Installation & Upgrades , 2 years ago

How to install vagrant on ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by sallie , 2 years ago

@damian_mills install VirtualBox first by running the following command in the terminal:


1
apt install virtualbox


and then run this command to download the vagrant:

1
wget https://releases.hashicorp.com/vagrant/2.2.19/vagrant_2.2.19_x86_64.deb


and then you can install vagrant by running:

1
apt install ./vagrant_2.2.19_x86_64.deb


by sarai_bergstrom , 7 months ago

@damian_mills 

To install Vagrant on Ubuntu, you can follow these steps:

  1. Open a terminal by pressing Ctrl + Alt + T.
  2. Install VirtualBox by running the following command:
1
sudo apt install virtualbox


  1. Download the Vagrant package from the official website using wget. Open the terminal and run the following command to download the latest version:
1
wget https://releases.hashicorp.com/vagrant/{version}/vagrant_{version}_x86_64.deb


Note: Replace {version} with the desired version number. Visit the official Vagrant website (https://www.vagrantup.com/downloads) to check for the latest version.

  1. Once the download is complete, install Vagrant by running the following command:
1
sudo apt install ./vagrant_{version}_x86_64.deb


Note: Replace {version} with the downloaded Vagrant version number.

  1. Verify the installation by checking the Vagrant version:
1
vagrant --version


You should see the installed Vagrant version printed in the terminal.


Vagrant is now successfully installed on your Ubuntu machine. You can start using it to manage virtualized environments.