Skip to content

Instantly share code, notes, and snippets.

@timohuovinen
Last active October 26, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timohuovinen/34976a8bafb59774365715f4ddfdcbf7 to your computer and use it in GitHub Desktop.
Save timohuovinen/34976a8bafb59774365715f4ddfdcbf7 to your computer and use it in GitHub Desktop.
Install go using asdf on linux mint

Install go using asdf on linux mint

sudo apt update
sudo apt install -y curl git
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
cat << EOF >> ~/.bashrc
# ASDF
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
EOF
source ~/.bashrc
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
asdf install golang latest
asdf global golang latest
asdf reshim golang
go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment