Brad Fitzpatrick | 9259a69 | 2017-03-22 10:08:48 -0700 | [diff] [blame] | 1 | Try: |
Albert Wang | cfdc57f | 2016-03-12 16:33:05 -0800 | [diff] [blame] | 2 | |
| 3 | ``` |
Fazle Arefin | d7622c1 | 2017-03-24 02:26:22 +1100 | [diff] [blame] | 4 | $ sudo apt-get install golang-go |
Albert Wang | cfdc57f | 2016-03-12 16:33:05 -0800 | [diff] [blame] | 5 | ``` |
| 6 | |
Brad Fitzpatrick | 1fb9011 | 2017-03-22 10:09:32 -0700 | [diff] [blame] | 7 | ... but if that's too old for you, try: |
世外桃源 | 4f600cd | 2016-10-14 09:51:09 +0800 | [diff] [blame] | 8 | |
Thiago Avelino | 00e9b66 | 2017-03-13 21:40:39 -0300 | [diff] [blame] | 9 | ``` |
Fazle Arefin | d7622c1 | 2017-03-24 02:26:22 +1100 | [diff] [blame] | 10 | $ sudo apt-get install golang-1.8-go |
Brad Fitzpatrick | 9259a69 | 2017-03-22 10:08:48 -0700 | [diff] [blame] | 11 | ``` |
| 12 | |
David Landry | 43f8a8a | 2017-09-06 16:25:31 -0400 | [diff] [blame^] | 13 | > Note that golang-1.8-go puts binaries in /usr/lib/go-1.8/bin. If you want them on your PATH, you need to make the change yourself. |
| 14 | |
Chris Glass | bcab270 | 2017-06-08 01:04:25 +0200 | [diff] [blame] | 15 | Using snaps also works quite well: |
| 16 | |
| 17 | ``` |
| 18 | # This will give you go 1.8 |
| 19 | $ snap install --classic go |
| 20 | ``` |
| 21 | |
Brad Fitzpatrick | 9259a69 | 2017-03-22 10:08:48 -0700 | [diff] [blame] | 22 | Or use Go's official (non-Deb) downloads: |
| 23 | |
| 24 | https://golang.org/dl/ |
| 25 | |
RPiAwesomeness | 66ed20d | 2017-03-26 09:58:13 -0400 | [diff] [blame] | 26 | If you're using Ubuntu 16.04 LTS and are unable to install `golang-1.8-go`, then you can also use the `longsleep/golang-backports` PPA: |
Brad Fitzpatrick | 9259a69 | 2017-03-22 10:08:48 -0700 | [diff] [blame] | 27 | |
RPiAwesomeness | 66ed20d | 2017-03-26 09:58:13 -0400 | [diff] [blame] | 28 | ``` |
| 29 | sudo add-apt-repository ppa:longsleep/golang-backports |
| 30 | sudo apt-get update |
| 31 | sudo apt-get install golang-go |
| 32 | ``` |
Brad Fitzpatrick | 9259a69 | 2017-03-22 10:08:48 -0700 | [diff] [blame] | 33 | |