blob: c24cf00b091d0056ef2d979cb94ce22da1ead594 [file] [log] [blame] [view]
Matt Holtaf843d32015-06-11 13:37:21 -06001## Install package `golang`
Andrew Gerrand5bc444d2014-12-10 11:35:11 +11002
Matt Holtaf843d32015-06-11 13:37:21 -06003The `golang` Debian package may have already made its way into your Ubuntu distribution. Try this:
Andrew Gerrand5bc444d2014-12-10 11:35:11 +11004
5```
Shimon Doodkine643f462016-03-04 15:36:09 +02006$ sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
7$ sudo apt-get update
Matt Holtaf843d32015-06-11 13:37:21 -06008$ sudo apt-get install golang
Andrew Gerrand5bc444d2014-12-10 11:35:11 +11009```
10
Shimon Doodkine643f462016-03-04 15:36:09 +020011just note there is golang in ubuntu but it is not up to date the date version might be found at
12https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxd-stable
13
Matt Holtaf843d32015-06-11 13:37:21 -060014That is all you need to get `go` working on your system. (You can use `go env GOROOT` to be sure where the Go files are, if you're curious.) Don't forget to create your GOPATH.
15
COLABORATIc674ec42015-04-22 13:05:21 +020016
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110017## If that didn't work
18
Matt Holtaf843d32015-06-11 13:37:21 -060019See http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-go
wrsgd606dbe2015-03-16 23:01:17 +000020