How To Install go-srpm-macros.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install go-srpm-macros.noarch on Amazon Linux 2.
What is go-srpm-macros.noarch
This package provides SRPM-stage rpm automation to simplify the creation of Go language (golang) packages. It limits itself to the automation subset required to create Go SRPM packages and needs to be included in the default build root. The rest of the automation is provided by the go-rpm-macros package, that go-srpm-macros will pull in for Go packages only.
We can use yum to install go-srpm-macros.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install go-srpm-macros.noarch.
Install go-srpm-macros.noarch on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install go-srpm-macros.noarch using yum by running the following command:
sudo yum -y install go-srpm-macros.noarch
How To Uninstall go-srpm-macros.noarch on Amazon Linux 2
To uninstall only the go-srpm-macros.noarch package we can use the following command:
sudo yum remove go-srpm-macros.noarch
go-srpm-macros.noarch Package Contents on Amazon Linux 2
/usr/lib/rpm/lua/fedora/srpm/go.lua
/usr/lib/rpm/macros.d/macros.go-srpm
/usr/share/doc/go-rpm-macros
/usr/share/doc/go-rpm-macros/README.md
/usr/share/licenses/go-rpm-macros
/usr/share/licenses/go-rpm-macros/LICENSE.txt
References
Summary
In this tutorial we learn how to install go-srpm-macros.noarch on Amazon Linux 2 using yum.