Skip to content

Instantly share code, notes, and snippets.

@juliendsv
Created October 26, 2015 17:21
Show Gist options
  • Save juliendsv/1dbf21f46a983181b223 to your computer and use it in GitHub Desktop.
Save juliendsv/1dbf21f46a983181b223 to your computer and use it in GitHub Desktop.
install Go
#!/bin/bash
sudo apt-get -y install wget
set -e;
if [ -z "$1" ]
then
echo "Please specify the version you want."
exit
fi
wget https://storage.googleapis.com/golang/go$1.linux-amd64.tar.gz
# tar -C /usr/local -xzf go$1.linux-amd64.tar.gz
tar -C /usr/local -xzf go$1.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment