Home > Article > Backend Development > How Can I Get the Latest Stable Go Release for Linux Directly?
URL for Latest Stable Go Release
Seeking a URL that consistently provides access to the latest stable Go release for Linux? This question arises often when automating the acquisition and installation of Go using scripts.
Official Download Site
Visiting the official Go download site (https://golang.org/dl/) reveals only specific release download links. However, there is a solution to obtain the latest release directly.
Permanent URL for Latest Release
The following URL points to the current latest stable Linux binary release of Go:
https://dl.google.com/go/$(curl https://go.dev/VERSION?m=text).linux-amd64.tar.gz
Example Script
To download and install the latest Go release using a script, you can incorporate the following commands:
wget "https://dl.google.com/go/$(curl https://go.dev/VERSION?m=text).linux-amd64.tar.gz" tar -xzf go*.tar.gz
This script downloads the latest release and decompresses it. You can then proceed with the installation process as desired.
The above is the detailed content of How Can I Get the Latest Stable Go Release for Linux Directly?. For more information, please follow other related articles on the PHP Chinese website!