

The -O flag ensures that this outputs to a file, and the L flag instructs HTTPS redirects, since this link was taken from the Go website and will redirect here before the file downloads: Then use curl to retrieve the tarball, making sure to replace the highlighted URL with the one you just copied. Now that you have your link ready, first confirm that you’re in the home directory:

To install Go on an Ubuntu server (or any Linux server, for that matter), copy the URL of the file ending with. From there, copy the URL for the current binary release’s tarball.Īs of this writing, the latest release is go1.16.7. Next, navigate to the official Go downloads page in your web browser. In this step, you will install Go on your server.įirst, connect to your Ubuntu server via ssh: This tutorial requires an Ubuntu 20.04 system configured with a non-root user with sudo privileges and a firewall as described in Initial Server Setup with Ubuntu 20.04.
#Install vagrant ubuntu how to#
This tutorial outlines how to download and install the latest version of Go (currently version 1.16.7) on an Ubuntu 20.04 server, build the famous Hello, World! application, and make your Go code into an executable binary for future use. Since its release, Go has become highly popular among developers and is used for various applications ranging from cloud or server-side applications, to artificial intelligence and robotics. Google’s intention was to create a programming language that could be learned quickly.

Go, sometimes referred to as “Golang”, is an open-source programming language that was released by Google in 2012.
