Skip to content

Automatically install the latest version of Go on Ubuntu/Debian.

License

Notifications You must be signed in to change notification settings

imkasen/go-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Installation Script

Automatically install the latest version of Go.

  • Supported Linux: Ubuntu / Debian or any distribution based on them.

How to install / update

Online

# default
curl -fsL https://raw.githubusercontent.com/imkasen/go-installer/main/install.sh | bash

# fastgit proxy
curl -fsL https://raw.fastgit.org/imkasen/go-installer/main/install.sh | bash

Offline

Save the script as a file named install.sh

bash install.sh

How it works

The script is based on the official installation instruction from Go Docs.

  1. Search for the latest binary release and download it.
    • People in Mainland China will use the URL https://golang.google.cn/dl/.
  2. The release will be installed at /usr/local/go.
  3. The GOPATH will be added to PATH.
    • People in Mainland China will be added a GOPROXY setting.

LICENSE

GPL v3

About

Automatically install the latest version of Go on Ubuntu/Debian.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages