I use debian 9 and go version go1.7.4
How to upgrade go to go1.9?
Uninstall the Debian managed version. Download the appropriate tar.gz from https://golang.org/dl/. Untar it and move to /usr/local/go
. Add /usr/local/go/bin
to your $PATH
or symlink the binaries therein.
Once that you have any Go compiler running, you can also use this: https://godoc.org/golang.org/x/build/version/go1.9.3
As Jakob says, it’s usually preferable not to use the distribution package.
actually, you can have your cake and eat it, ie: get the latest release and use your favorite package manager.
Just use godeb
:
thanks all, but
How to Add /usr/local/go/bin to my $PATH or symlink the binaries therein?
This is why I like Mac and Homebrew
I use the go version manager called gvm. You can find it here. This will let you have multiple go versions and switch between them with a simple gvm command. Their documentation is available on their github page mentioned above.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.