Install GOLang Binaries in UNIX/LINUX Environment

Go is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. Follow the below steps to install it on you Linux/Unix Box :

Steps :

  1. Download it from

curl -sSL \
-o goX.XX.X.linux-amd64.tar.gz

Replace the X.XX.X with current version.

2. Extract the downloaded file to /usr/local

sudo tar -C /usr/local -xzf goX.XX.X.linux-amd64.tar.gz

3. Add the path /usr/local/go/bin to the environment variable, and for that just add the below lines to your .bashrc file, which is located on your home directory ~/.bashrc. Add below lines

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

And now you are good to GO!!. Test the setup with go version

$ go version  
go version go1.15.3 linux/amd64

thats it, till next time…

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.