Last active
October 28, 2023 15:48
-
-
Save 17xande/2e5eb05dec836d46304ee1cd123a2764 to your computer and use it in GitHub Desktop.
Go one liner installer for Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# one-liner to install latest version of go in an amd64 environment. | |
wget "https://go.dev/dl/$(curl 'https://go.dev/VERSION?m=text' | head -n1).linux-amd64.tar.gz" && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz | |
# alternative | |
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment