Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active January 3, 2024 21:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/c1e2531a5add831864939589b7cee6e7 to your computer and use it in GitHub Desktop.
Save fedir/c1e2531a5add831864939589b7cee6e7 to your computer and use it in GitHub Desktop.
Go (Golang) installation and path configuration for Ubuntu / Debian / Linux Mint / ...
export GOROOT=/usr/local/go
export PATH=${GOROOT}/bin:${PATH}
export GOPATH=$HOME/go
export PATH=${GOPATH}/bin:${PATH}

On macOS

  1. rm -rf /usr/local/go/
  2. Download iOS installer
  3. Install
  4. Add path variables into Your .profile

On Linux Mint, Ubuntu, Debian

GOVER="1.11.4"
GOOS="linux"
GOARCH="amd64"
wget https://dl.google.com/go/go${GOVER}.${GOOS}-${GOARCH}.tar.gz
tar -C /usr/local -xzf go${GOVER}.${GOOS}-${GOARCH}.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment