Skip to content

Instantly share code, notes, and snippets.

@amircloner
Last active June 4, 2023 08:51
Show Gist options
  • Save amircloner/de8185e49d2789735c346556e7f8d203 to your computer and use it in GitHub Desktop.
Save amircloner/de8185e49d2789735c346556e7f8d203 to your computer and use it in GitHub Desktop.
install golang linux
#!/bin/bash
#curl -sSL https://gist.github.com/amircloner/de8185e49d2789735c346556e7f8d203/raw | bash
wget -c https://go.dev/dl/go1.20.4.linux-amd64.tar.gz
shasum -a 256 go1.7.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xvzf go1.20.4.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile
source $HOME/.profile
go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment