Last active
August 16, 2023 08:55
-
-
Save 17xande/ea430cecad13d9b56575dc2ed63f09d6 to your computer and use it in GitHub Desktop.
short script for downloading and installing lastest version of go in a linux amd64 environment
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
#! /bin/bash | |
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 | |
rm go*.linux-amd64.tar.gz | |
go version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment