Install Go on Ubuntu (terminal)

How to install Go 1.14.2 on Ubuntu 18.04 using the command line (terminal).

Download latest version here:

Add Go to your PATH in your ~/.bashrc file: export PATH=$PATH:/usr/local/go/bin

Why you don’t need GOPATH:

28 thoughts on “Install Go on Ubuntu (terminal)

  1. please help me with this,
    i get error while extracting:
    tar (child): Cannot connect to https: resolve failed

    gzip: stdin: unexpected end of file
    tar: Child returned status 128
    tar: Error is not recoverable: exiting now

Leave a Reply

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