Last active
August 12, 2021 23:04
-
-
Save CloudLinuxDeveloper/453fdad1a8aeb3029015479c93929e81 to your computer and use it in GitHub Desktop.
How to install Vagrant on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/sh | |
# Setup Vagrant | |
sudo apt update && sudo apt upgrade | |
sudo apt install virtualbox | |
sudo apt update | |
curl -O https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.deb | |
sudo apt install ./vagrant_2.2.6_x86_64.deb | |
# Version | |
vagrant --version | |
# Create the project directory | |
mkdir ~/vagrant-project | |
cd ~/vagrant-project | |
vagrant init centos/7 | |
vagrant up | |
vagrant ssh | |
vagrant halt | |
vagrant destroy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment