1. Home
  2. Technical
  3. Golang installation

Golang installation

Both the Golang development environment and the applications compiled in it are very self-contained and do not require anything from the system other than a reasonably modern glibc library.

To install Golang, download the Go package for the Linux/amd64 platform from https://go.dev/dl/, unpack it in the home directory and add ~/go/bin to the $PATH environment variable:

wget https://go.dev/dl/go1.18.1.linux-amd64.tar.gz
tar -C ~ -xzf go1.18.1.linux-amd64.tar.gz
export PATH=~/go/bin:$PATH
go version
Updated on 4. Apr 2024

Was this article helpful?

Related Articles