Home > Backend Development > Golang > 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
Release: 2024-11-09 07:45:02
Original
615 people have browsed it

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
Copy after login

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
Copy after login

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 of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template