How to upgrade go to go1.9?

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 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:

As Jakob says, it’s usually preferable not to use the distribution package.

1 Like

actually, you can have your cake and eat it, ie: get the latest release and use your favorite package manager.

Just use godeb:

1 Like

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 :grinning:

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.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.