Install Go (Golang) on CentOS 7 / RHEL 7

Go or GoLang, as it is called, is an open-source programming language designed to help ease the development of simple and scalable applications. It was implemented as a product of Google Engineering in 2009. It was referred to as a statically-typed programming language with ease of use, versatility, and reliability.

Currently, Golang has become one of the most popular programming languages due to its efficiency, clean design, and expressive, and concise design model. Some of the projects that make use of Golang are:

  • snappy – a package manager
  • Juju – a service orchestration tool by canonical
  • Docker – a set of tools for deploying containers
  • Dropbox moved the critical components to Go lang from python

The features of the Go programming language are:

  • It is Open-Source
  • It has a powerful Standard Library and Tool Set
  • Concurrency Support – it offers easy and trackable concurrency options.
  • Garbage Collection
  • Testing Capabilities
  • Cross-Platform Development Opportunities
  • Highly scalable

This guide offers a systematic demonstration of how to install Go (Golang) on CentOS 7 / RHEL 7.

Step 1 – Update System

First, ensure that your system is up-to-date and packages are to their latest versions. This is achieved using the command below:

yum update -y

Install the required packages:

yum install wget -y

Step 2 – Install Go (Golang)

wget -N https://storage.googleapis.com/golang/getgo/installer_linux
chmod +x installer_linux && ./installer_linux

Once the installation will be completed, You will then be required to source the ~/.bash_profile

source ~/.bash_profile

Finally, verify the installed version of Golang:

go version

That's all!

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to restrict direct root access in Linux

We can do it just in two steps. Step One: At first we will create new root user as follows (for...

How to extract .tar.gz files in Linux/UNIX OS

A tarball is a group of files that are bundled together using the tar command. Use the...

How to add welcome message when SSH start?

You need to change the contents of /etc/motd. Unfortunately, by default, /etc/motd is a link to...

How to change root password when SSH logged in

Run the following command: passwd Now type your new passwordOnce done, retype new passwordDone!...

How to install Pinguzo on any Linux/UNIX OS

Login to Pinguzo panel using Softaculous account or create an account of Pinguzo To add new...