Skip to content

Instantly share code, notes, and snippets.

@ruzickap
Created May 21, 2018 08:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruzickap/cb2d719c90b7cf569629eb622688cdb6 to your computer and use it in GitHub Desktop.
Save ruzickap/cb2d719c90b7cf569629eb622688cdb6 to your computer and use it in GitHub Desktop.
Install latest Vagrant using command line
#!/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