Skip to content

Instantly share code, notes, and snippets.

@threeaccents
Last active March 26, 2016 02: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 threeaccents/4c55f15bbeb7c997db72 to your computer and use it in GitHub Desktop.
Save threeaccents/4c55f15bbeb7c997db72 to your computer and use it in GitHub Desktop.
install golang 1.6 on ubunutu
#!/bin/bash
sudo apt-get update
sudo apt-get install git
curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
tar -xvf go1.6.linux-amd64.tar.gz
sudo mv go /usr/local
mkdir ~/work
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
echo "export GOPATH=$HOME/work" >> ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment