-
Notifications
You must be signed in to change notification settings - Fork 7
Rebuilding reinstalling upgrading Go
Louis Maddox edited this page Jan 7, 2018
·
3 revisions
- My Go source is in
~/.go, moved to~/.go1.4to make room for 1.5 -
export GOROOT_BOOTSTRAP="/usr/local/go1.4"soall.bashknows where the Go it's building with is
/usr/local/go/src $ ./all.bash-
firstly get the location of Go (
which go⇒/usr/local/go/bin/go) -
as outlined here, remove the existing Go (or if you like, keep it for posterity, or in case you need to roll back)
sudo mv /usr/local/go/ /usr/local/go1.6/ -
download the latest binary from golang.org
-
sudo tar -C /usr/local -xzf Downloads/go1.9.2.linux-amd64.tar.gz -
to confirm, run
go version⇒go version go1.9.2 linux/amd64