使用 apt 在 Ubuntu 上安装 Golang
在Ubuntu上使用apt安装golang。
步骤
sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt update -y
sudo apt install -y golang-go
※加上-y选项使其能够自动安装。
记事
截至2020年4月26日,Ubuntu 19.10安装了go 1.14.2。Ubuntu 20.04安装了go 1.13.8。
リンク
以下是一些链接,提供有关Golang在Ubuntu上安装和使用的信息:
1. Golang在Ubuntu上的官方Wiki页面:https://github.com/golang/go/wiki/Ubuntu
2. Golang的Ubuntu后退端口,由longsleep维护:https://launchpad.net/~longsleep/+archive/ubuntu/golang-backports
3. 由longsleep维护的Golang deb包:https://github.com/longsleep/golang-deb
4. Golang官方源代码库:https://go.googlesource.com/go
5. 一篇关于在Ubuntu上使用Golang的Qiita(知乎)文章:https://qiita.com/Sylba2050/items/29211a4cf4caa60162c0