Skip to content

Instantly share code, notes, and snippets.

@Adron
Last active March 29, 2025 11:12
Show Gist options
  • Save Adron/4e1e7d0f71da7c415f455d5930ea94c9 to your computer and use it in GitHub Desktop.
Save Adron/4e1e7d0f71da7c415f455d5930ea94c9 to your computer and use it in GitHub Desktop.
Installing golang via apt-get
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.
@AjmalShajahan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment