How to Install Go on Linux Mint 20

To install Go on Linux Mint 20

Introduction:

Go is a simple language with clear and concise specifications that are readable and comprehensive. One of the major strengths of Golang is its concurrency, which means multiple processes of the Go applications can run at the same time. This tutorial will cover the installation of Go on Linux Mint 20.

Installation procedure:

First check the version of the linux mint OS

root@LinuxHelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Linuxmint
Description:	Linux Mint 20
Release:	20
Codename:	ulyana

Now update the packages by using the following command

root@LinuxHelp:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                             
.
.
.
Fetched 5,262 kB in 6s (836 kB/s)                                                                                         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
403 packages can be upgraded. Run 'apt list --upgradable' to see them.

Now download the Go package by using Wget command

root@LinuxHelp:~# wget -q https://storage.googleapis.com/golang/getgo/installer_linux

Once the package is download then give the executable permission to the packages

root@LinuxHelp:~# chmod +x installer_linux

Once the permission is given then install the packages

root@LinuxHelp:~# ./installer_linux
Welcome to the Go installer!
Downloading Go version go1.15.6 to /root/.go
This may take a bit of time...
Downloaded!
Setting up GOPATH
GOPATH has been set up!
One more thing! Run `source /root/.bash_profile` to persist the
new environment variables to your current session, or open a
new shell prompt.

Now add the go function file to the system shell scripts by using the following command

root@LinuxHelp:~# source /root/.bash_profile

once the file is added then check the version of the go by using the following command

root@LinuxHelp:~# go version
go version go1.15.6 linux/amd64

With this method, the installation of the Go on Linux Mint 20 is comes to an end.

FAQ
Q
How do check the version of Go?
A
The command is # go version
Q
How do you install the Go?
A
Using the following command to install the Go
# ./installer_linux
Q
How do you load the Golang functions file into the current shell script?
A
To using the following command to load the function file to system shell script
source /root/.bash_profile
Q
Where did you download the GO packages?
A
The URL is: https://storage.googleapis.com/golang/getgo/installer_linux
Q
What is GO in linux?
A
Go is an elegant language with clean and concise specifications that are readable and comprehensive. One of the major
strengths of Golang is its concurrency, which means multiple processes of the Go applications can run at the same time.