Skip to content

Instantly share code, notes, and snippets.

@0xqd
Last active December 25, 2015 17:39
Show Gist options
  • Save 0xqd/7015002 to your computer and use it in GitHub Desktop.
Save 0xqd/7015002 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Ubuntu provides go through the `golang` package, but it is slow to update.
#
# Using gvm, we can install an up to date version of go on a user by user basis.
# Install gvm deps
sudo apt-get install mercurial bison
# Install and activate gvm
bash < <(curl -s https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer)
source $HOME/.gvm/scripts/gvm
# Install go
gvm install go1.1.2
gvm use go1.1.2 --default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment