Created
May 21, 2018 08:35
-
-
Save ruzickap/cb2d719c90b7cf569629eb622688cdb6 to your computer and use it in GitHub Desktop.
Install latest Vagrant using command line
This file contains 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/bash | |
apt-get install -y --no-install-recommends ca-certificates curl jq | |
VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version') | |
curl https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.deb --output /tmp/vagrant_x86_64.deb | |
apt install -y /tmp/vagrant_x86_64.deb | |
rm /tmp/vagrant_x86_64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment