Home  >  Article  >  Backend Development  >  How Can I Get the Latest Stable Go Release for Linux Directly?

How Can I Get the Latest Stable Go Release for Linux Directly?

Barbara Streisand
Barbara StreisandOriginal
2024-11-09 07:45:02554browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn