Last active
February 19, 2016 21:13
-
-
Save mohae/b34ccfe8d967d479db8f to your computer and use it in GitHub Desktop.
upgrades go to current version; removes prior version artifacts
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
| #!/bin/bash | |
| # remove the old Go | |
| sudo rm -rf /usr/local/go | |
| # remove artifacts from prior version | |
| rm -rf $GOPATH/bin/* | |
| rm -rf $GOPATH/pkg/* | |
| # download and extract Go to /usr/local/go/ | |
| # change the tarball for different version/arch | |
| wget -qO- https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | sudo tar xz -C /usr/local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment