Installing Go

Felix Lange edited this page Nov 18, 2016 · 26 revisions


Download and run the installer found at


Download an install the darwin binary from

You can also install go using the Homebrew package manager.



The Ubuntu repositories carry an old version of Go.

Ubuntu users can use the 'gophers' PPA to install an up to date version of Go (version 1.7 or later is preferred). See for more information. Note that this PPA requires adding /usr/lib/go-1.X/bin to the executable PATH.

Other distros

Download the latest distribution

curl -O

Unpack it to the /usr/local (might require sudo)

tar -C /usr/local -xzf go1.7.3.linux-amd64.tar.gz


For Go to work properly, you need to set the following two environment variables:

  • Setup a go folder mkdir -p ~/go; echo "export GOPATH=$HOME/go" >> ~/.bashrc
  • Update your path echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc
  • Read the environment variables into current session: source ~/.bashrc
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.