Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 1 | ## Install package ` golang ` |
| 2 | |
| 3 | The ` golang ` Debian package may have already made its way into your Ubuntu distribution. Try this: |
| 4 | |
| 5 | ``` |
| 6 | sudo apt-get install golang |
| 7 | ``` |
| 8 | |
| 9 | ## If that didn't work |
| 10 | |
| 11 | If you have an arm, i386, or amd64, with the Ubuntu Lucid, Maverick, |
| 12 | Natty, Oneiric, or Precise release, you can easily install Go 1 right |
| 13 | now as a package by running: |
| 14 | |
| 15 | ``` |
| 16 | sudo add-apt-repository ppa:gophers/go |
| 17 | sudo apt-get update |
| 18 | sudo apt-get install golang-stable |
| 19 | ``` |
| 20 | |
| 21 | (If you don't have ` add-apt-repository `, run "` sudo apt-get install python-software-properties `".) |
| 22 | |
| 23 | The ` golang-stable ` package includes everything necessary for developing |
| 24 | with Go. There are also ` golang-tip ` and ` golang-weekly ` packages in the |
| 25 | same repository, and these are up-to-date, except ` golang-weekly ` isn't |
| 26 | really interesting at the moment since golang-stable is more recent. |