Go install
Revision as of 20:10, 22 April 2023 by Busk (talk | contribs) (Busk moved page Golang install to Go install without leaving a redirect )
https://golang.org/doc/install
#!/bin/bash set -eu version=1.20.3 sudo apt remove -y golang-go || true # curl -LO https://go.dev/dl/go1.20.3.linux-amd64.tar.gz curl -LO https://golang.org/dl/go$version.linux-amd64.tar.gz sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$version.linux-amd64.tar.gz echo 'export PATH=${PATH}:/usr/local/go/bin' >> ~/.bashrc . ~/.bashrc
Snap
sudo snap install --classic go
Apt
sudo apt install -y golang-go