This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

Update Golang version on Linux

Words
44
Reading
1 min
Listen
Play
9y

golang-gopher.jpg

Update Golang version on Linux

  1. Remove old installation; default folder is /usr/local/go, but it may be different.
sudo rm -rf /usr/local/go
  1. Download Go
wget -O golang.tar.gz https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
  1. Extract the archive into /usr/local/go (or different folder - depends on your installation)
sudo tar -C /usr/local -xzf golang.tar.gz
  1. Test if it's OK
go version
Update Golang version on Linux | Ecency