Categories: Linux

How to Install Go Programming Language on Ubuntu 20.04

Go is one of the latest open source programming languages that is used to do memory management safely and also helps in dealing with garbage collection gracefully. It is a statically typed language that can conveniently manage objects and hence provides a very efficient way of creating useful programs. This article shows you how you can install the Go language on an Ubuntu 20.04 system.

Installing Go on Ubuntu Linux

We will install Go language on Ubuntu by performing the following steps:

Step # 1: Carry out a System Update

First, we will carry out a system update with the command shown below:

$ sudo apt-get update

Step # 2: Install Go on your Updated System

After this system update, we are good to go with the installation of the Go language on our system which we can perform with the following command:

$ sudo apt-get install golang

The golang package contains the Go programming language compiler and tools. When this command is executing, you will be asked to provide confirmation by hitting the “Y” key as shown in the image below:

Once you will do that, the installation of the Go language will complete after a few minutes.

Step # 3: Confirm the Installation of Go on your System

Confirm Go language installation by checking the version.

$ go version

You can see the version of the Go language installed on our system. Screenshot below:

Removing Go

Use this command to remove Go compiler from your system.

$ sudo apt-get purge --autoremove golang

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Recent Posts

How to Install Magento 2 on AlmaLinux

Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…

1 year ago

How to Install ISPConfig Hosting Control Panel with Apache Web Server on Ubuntu 24.04

ISPConfig is an open-source control panel that allows users to manage multiple servers from a…

1 year ago

How to Test your Email Server (SMTP) Using the Telnet Command

As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…

1 year ago

Managing Network Interfaces and Settings on Ubuntu 24.04 with nmcli

Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…

2 years ago

Using Restic Backup on Ubuntu 24.04

Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…

2 years ago

Installing phpMyAdmin on Rocky Linux 9 and Securing it with Let’s Encrypt SSL

phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…

2 years ago