How to install GoLang 1.5 on Ubuntu

Check what the latest version are from GoLang:

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

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:

To remove an older version of Golang:

  5 comments for “How to install GoLang 1.5 on Ubuntu

  1. November 7, 2015 at 7:13 am

    Thanks for your post.

    However, it should really be
    export PATH=$GOROOT/bin:$PATH

    Otherwise your machine will find the version of go that comes with your distribution.

    • January 6, 2016 at 1:59 pm

      Thanks, I see your point. I was using one without GO, but flipping it around will indeed be more generic.

  2. December 13, 2015 at 10:16 am

    thx for the howto. stalled a bit on the env variable (GOPATH on ubuntu 14.04). Edit/add to /home/userdir/.bashrc worked for me.

  3. karan
    January 5, 2016 at 4:11 pm

    Hi,

    A very helpful article. It worked for me.

    Thanks,
    Karan

  4. sikis izle
    May 3, 2016 at 1:02 pm

    excellent article.

Leave a Reply

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