Install gvm
sudo apt-get install curl git mercurial make binutils bison gcc build-essential
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT
Now after installing the old version, look for the latest release.
- Open URL https://golang.org/dl/ and look what is the latest version number.
- Then look if that release is available via gvm:
gvm listall
- Install latest version
gvm install go1.6.3
- Set it as the default version:
gvm use go1.6.3 --default
If you have previous version of Go already installed, you can update to a new release version of Go with these steps:
gvm install go1.8.1
gvm use go1.8.1 --default
It is useful, thank you!