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.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3