How to install the current version of Go in Ubuntu Precise

前端 未结 17 2060
温柔的废话
温柔的废话 2021-01-29 19:08

Running sudo apt-get install golang-stable, I get Go version go1.0.3. Is there any way to install go1.1.1?

17条回答
  •  花落未央
    2021-01-29 19:41

    You can use a script from udhos/update-golang.

    Here is a two-liner as example (run as root):

    bash <(curl -s https://raw.githubusercontent.com/udhos/update-golang/master/update-golang.sh)
    ln -vs /usr/local/go/bin/go* /usr/local/bin/
    

提交回复
热议问题