How to install GoLang 1.5 on Ubuntu

on December 10th, 2016 by Hades | No Comments »

Check what the latest version are from GoLang: Golang Downloads

Download and install (update the version to the latest):

wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz

Add /usr/local/lib/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/.profile (for a system-wide installation) or $HOME/.profile:

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

To remove an older version of Golang:

sudo rm -rf /usr/local/go

Leave a Reply

Your email address will not be published. Required fields are marked *

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