Last active
October 20, 2022 21:38
-
-
Save mmguero/e2eb8773a8f20be294dc4c0b714e903f to your computer and use it in GitHub Desktop.
install latest Vagrant .deb from releases.hashicorp.com
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
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