How to install Go on Ubuntu 22.04 Linux With Single Command

To increase programming productivity in the era of multicore, networked machines, and massive codebases, Go was created at Google in 2007.  The creators aimed to address concerns about other Google languages while maintaining their beneficial qualities. 

Robert Griesemer, Rob Pike, and Ken Thompson created the statically typed, compiled programming language Go at Google. Although it has memory safety, garbage collection, structural typing, and parallelism in the CSP manner, it is syntactically identical to C.   Because of its previous domain name,, it is frequently referred to as Golang, while its actual name is Go.

The Go programming language offers built-in support from libraries for developing concurrent programs. In addition to CPU parallelism, concurrency also refers to asynchrony, which is used frequently in event-based servers to let sluggish activities like database or network reads execute concurrently with other activity.

Go is used in several well-known Linux applications, including Docker, Kubernetes, and many others. Let’s look at how to install Go in Ubuntu Linux.

Install Golang with Snap command on Ubuntu

Ubuntu offers easy installation of Go with its snap package installer.

sudo snap install go --classic

This will install the linker, compiler, and stdlib for the Go programming language. To verify Go installation, run the following command in the terminal.

go version

You should see output like the following, displaying the current version of the golang programming language installed in your system.

go version go1.18.3 linux/amd64

Install Golang with the APT package manager

Ubuntu provides one more way to install Golang with ease.

Start by updating the apt repositories with the following command

sudo apt update

Next, install goland package with apt

sudo apt install golang-go

And that’s it.
You are ready to start using Go in your Ubuntu system.

Leave a Reply

Your email address will not be published.