xxxxxxxxxx
wget https://dl.google.com/go/go1.17.linux-amd64.tar.gz
sudo tar -xvf go1.17.linux-amd64.tar.gz
sudo mv go /usr/local
sudo ln -s /usr/local/go/bin/* /usr/bin
rm go1.17.linux-amd64.tar.gz
xxxxxxxxxx
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go
xxxxxxxxxx
wget https://go.dev/dl/go1.20.14.linux-amd64.tar.gz
sudo tar -xvf go1.20.14.linux-amd64.tar.gz
sudo mv go /usr/local
sudo ln -s /usr/local/go/bin/* /usr/bin
rm go1.20.14.linux-amd64.tar.gz
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
xxxxxxxxxx
//Documentation
https://go.dev/doc/install
//Download stable version
https://go.dev/dl/
//Remove any previous go
sudo rm -rf /usr/local/go
//Go installation
sudo tar -C /usr/local -xzf gox.x.x.linux-amd64.tar.gz
//Add /usr/local/go/bin to the PATH environment variable
export PATH=$PATH:/usr/local/go/bin
//Do you want to persistent:
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
//Verify that you've installed Go by opening a command prompt and typing the following command
go version
xxxxxxxxxx
//Documentation
https://go.dev/doc/install
//Download stable version
https://go.dev/dl/
//Remove any previous go
sudo rm -rf /usr/local/go
//Go installation
sudo tar -C /usr/local -xzf gox.x.x.linux-amd64.tar.gz
//Add /usr/local/go/bin to the PATH environment variable
export PATH=$PATH:/usr/local/go/bin
//Do you want to persistent:
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
//Verify that you've installed Go by opening a command prompt and typing the following command
go version
xxxxxxxxxx
wget https://dl.google.com/go/go1.18.linux-amd64.tar.gz
sudo tar -xvf go1.18.linux-amd64.tar.gz
xxxxxxxxxx
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz
xxxxxxxxxx
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update