mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Put the working and most usable and relevant instructions first.
parent
04aa758f8b
commit
0ec539beb7
21
Ubuntu.md
21
Ubuntu.md
@ -1,5 +1,15 @@
|
||||
The Go project's official download page is at [https://golang.org/dl/](https://golang.org/dl/).
|
||||
|
||||
If you're using Ubuntu 16.04 LTS, 18.04 LTS, 18.10 or 19.04, then you can use the `longsleep/golang-backports` PPA and install Go 1.12.
|
||||
|
||||
```
|
||||
sudo add-apt-repository ppa:longsleep/golang-backports
|
||||
sudo apt-get update
|
||||
sudo apt-get install golang-go
|
||||
```
|
||||
|
||||
> **Note that `golang-go` installs latest Go as default Go. If you do not want that, install `golang-1.12` instead and use the binaries from `/usr/lib/go-1.12/bin`.**
|
||||
|
||||
There are some other options for Debian based systems like Ubuntu. These packages were not created by the Go project, and we don't support them, but they may be useful for you.
|
||||
|
||||
Try:
|
||||
@ -26,14 +36,3 @@ Using snaps also works quite well:
|
||||
$ sudo snap install --classic go
|
||||
```
|
||||
> A restart is required for the command to be recognized.
|
||||
|
||||
If you're using Ubuntu 16.04 LTS, 18.04 LTS, 18.10 or 19.04, then you can use the `longsleep/golang-backports` PPA and install Go 1.12.
|
||||
|
||||
```
|
||||
sudo add-apt-repository ppa:longsleep/golang-backports
|
||||
sudo apt-get update
|
||||
sudo apt-get install golang-go
|
||||
```
|
||||
|
||||
> **Note that `golang-go` installs latest Go as default Go. If you do not want that, install `golang-1.12` instead and use the binaries from `/usr/lib/go-1.12/bin`.**
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user