Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 680 Bytes


Upgrading go in 40 lines of bash. Blog post here.


  • Linux system with golang installed (usually to /usr/local/go)
  • A user with sudo privileges
  • Internet access
  • curl
  • tar
  • gzip

Sample Output

chad@dev-vm:~$ ./
This will upgrade go... are you sure? (Y/N) y
Downloading now...
Downloaded 127961523 bytes in 4.606516s
Uncompressing: go1.12.9.linux-amd64.tar.gz
Updated to go version go1.12.9 linux/amd64!
You can’t perform that action at this time.