Installing GoLang on Ubuntu

GoLang is new programming lanuage by Google. It us used by many popular open source software like docker, kubernetics.

You can download latest version of golang from

To install version 1.8.3, run

cd /usr/local/src
tar xvf go1.8.3.linux-amd64.tar.gz
mv go /usr/local

Edit .bashrc file

vi ~/.bashrc


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

Activate the changes with

source ~/.bashrc

GoLang is now ready to use, lets check the version

root@backup:~# go version
go version go1.8.3 linux/amd64

Installing Software written in GoLang

To test, we can install google drive command line tool written in golang with

go get -u

This may take some time. The command will download and compile the software. Place the binary file, in this case “drive” in folder ~/go/bin. Once finished, you can run it with command

root@backup:~# drive version
drive version:
Commit Hash: 
Go Version: 

Posted in Linux