Skip to content

Instantly share code, notes, and snippets.

@JonTheNiceGuy
Created March 19, 2016 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonTheNiceGuy/3498d5752ebc4afa61ac to your computer and use it in GitHub Desktop.
Save JonTheNiceGuy/3498d5752ebc4afa61ac to your computer and use it in GitHub Desktop.
Get the latest Vagrant on x86/x64 Debian based systems
#! /bin/bash
if [ `uname -p` == 'x86_64' ]
then
wget `curl -s https://www.vagrantup.com/downloads.html | sed 's/\s/\n/g' | grep x86_64.deb | cut -c 7- | cut --delimiter=\" -f 1` -O /tmp/vagrant.deb; dpkg -i /tmp/vagrant.deb; rm /tmp/vagrant.deb
else
wget `curl -s https://www.vagrantup.com/downloads.html | sed 's/\s/\n/g' | grep i686.deb | cut -c 7- | cut --delimiter=\" -f 1` -O /tmp/vagrant.deb; dpkg -i /tmp/vagrant.deb; rm /tmp/vagrant.deb
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment