Is there a howto to upgrade/install golang 1.17 on an RasPi?

Jun 20, 2023 Last reply: vor 3 Jahren 2 Replies

Is there a howto to upgrade/install golang 1.17 on an RasPi?



Where is a howto to upgrade/install golang 1.17 on an RasPi?



Bernd


On Tue, 20 Jun 2023 09:32:13 +0200, Bernd snipped-for-privacy@web.de declaimed the following:

formatting link
1.15 is the latest version in Bullseye, so you have to add the backports repository to the list of repositories, do "apt update", and then find the name of 1.17 package(s) to use "apt install".

I'm normally 100% in favor of installing from repositories, but as someone who's been writing Go since 2010 (there were Makefiles back then...) I strongly recommend just grabbing the arm64 tarball off of golang.org, unpacking it in /usr/local, and adding /usr/local/go/bin to your $PATH. Upgrades are easy and can be done on your schedule, not the packager's.

john

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required