Skip to content

Instantly share code, notes, and snippets.

@mmguero
Last active October 20, 2022 21:38
Show Gist options
  • Save mmguero/e2eb8773a8f20be294dc4c0b714e903f to your computer and use it in GitHub Desktop.
Save mmguero/e2eb8773a8f20be294dc4c0b714e903f to your computer and use it in GitHub Desktop.
install latest Vagrant .deb from releases.hashicorp.com
curl -o /tmp/vagrant.deb "$(curl -fsL "https://releases.hashicorp.com$(curl -fsL "https://releases.hashicorp.com/vagrant" | grep 'href="/vagrant/' | head -n 1 | grep -o '".*"' | tr -d '"' )" | grep "amd64\.deb" | head -n 1 | grep -o 'href=".*"' | sed 's/href=//' | tr -d '"')"
sudo dpkg -i /tmp/vagrant.deb
rm -f /tmp/vagrant.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment