How To Install go-compilers-golang-compiler on Rocky Linux 8

In this tutorial we learn how to install go-compilers-golang-compiler on Rocky Linux 8. go-compilers-golang-compiler is compiler for golang

Introduction

In this tutorial we learn how to install go-compilers-golang-compiler on Rocky Linux 8.

What is go-compilers-golang-compiler

Compiler for golang.

We can use yum or dnf to install go-compilers-golang-compiler on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install go-compilers-golang-compiler.

Install go-compilers-golang-compiler on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install go-compilers-golang-compiler using dnf by running the following command:

sudo dnf -y install go-compilers-golang-compiler

Install go-compilers-golang-compiler on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install go-compilers-golang-compiler using yum by running the following command:

sudo yum -y install go-compilers-golang-compiler

How To Uninstall go-compilers-golang-compiler on Rocky Linux 8

To uninstall only the go-compilers-golang-compiler package we can use the following command:

sudo dnf remove go-compilers-golang-compiler

go-compilers-golang-compiler Package Contents on Rocky Linux 8

/usr/lib/rpm/macros.d/macros.golang-compiler

References

Summary

In this tutorial we learn how to install go-compilers-golang-compiler on Rocky Linux 8 using yum and dnf.