-
-
Save Adron/4e1e7d0f71da7c415f455d5930ea94c9 to your computer and use it in GitHub Desktop.
| sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| sudo apt-get install golang | |
| # Usually this is good to install golang, but alas the apt-get repo is usually out of sync with the latest. |
Latest version is 1.16 now boys, read the official wiki, there's a installation guide
This is better option in my view: https://github.com/stefanmaric/g
This is better option in my view: https://github.com/stefanmaric/g
In my opinion this is better, https://asdf-vm.com with https://github.com/kennyp/asdf-golang
Yes. Agree. Keep it. Good source of info! Thanks.
Cant you just use this:
sudo apt install nala
sudo nala install golang
This OP I wrote is pretty dated at this point @g1gabyteDEV. So YMMV and I don't even do it this way anymore. 👍
Are these method necessary now? why can't I cant just update and do
sudo apt install golang-goWith this I get the lastest version
1.6.2
This still works in 2025 by the way.
Updated wiki https://go.dev/wiki/Ubuntu#using-ppa
Installs latest version by default, current default go1.23.6, go1.24.0 was released on 2025-02-11.
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-goUpdated wiki https://go.dev/wiki/Ubuntu#using-ppa Installs latest version by default, current default go1.23.6, go1.24.0 was released on 2025-02-11.
sudo add-apt-repository ppa:longsleep/golang-backports sudo apt update sudo apt install golang-go
I would rather avoid adding the ppas to my debian again, these shouldn't be needed
Updated wiki go.dev/wiki/Ubuntu#using-ppa Installs latest version by default, current default go1.23.6, go1.24.0 was released on 2025-02-11.
sudo add-apt-repository ppa:longsleep/golang-backports sudo apt update sudo apt install golang-goI would rather avoid adding the ppas to my debian again, these shouldn't be needed
yeah, IIRC it was to get the latest go build on ubuntu
Latest version is
1.10, not1.6.2.