How To Install go-rpm-templates on Fedora 36
Introduction
In this tutorial we learn how to install go-rpm-templates
on Fedora 36.
What is go-rpm-templates
This package contains documented rpm spec templates showcasing how to use the macros provided by go-rpm-macros to create Go packages.
We can use yum
or dnf
to install go-rpm-templates
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install go-rpm-templates.
Install go-rpm-templates on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install go-rpm-templates
using dnf
by running the following command:
sudo dnf -y install go-rpm-templates
Install go-rpm-templates on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install go-rpm-templates
using yum
by running the following command:
sudo yum -y install go-rpm-templates
How To Uninstall go-rpm-templates on Fedora 36
To uninstall only the go-rpm-templates
package we can use the following command:
sudo dnf remove go-rpm-templates
go-rpm-templates Package Contents on Fedora 36
/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-templates.txt
/usr/share/rpmdevtools
/usr/share/rpmdevtools/fedora
/usr/share/rpmdevtools/fedora/spectemplate-go-0-source-minimal-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-0-source-minimal.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-1-source-full-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-1-source-full.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-2-alternative-import-path-minimal-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-2-alternative-import-path-minimal.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-3-alternative-import-path-full-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-3-alternative-import-path-full.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-4-binary-minimal-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-4-binary-minimal.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-5-binary-full-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-5-binary-full.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-6-multi-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-6-multi.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-7-manual-bare.spec
/usr/share/rpmdevtools/fedora/spectemplate-go-7-manual.spec
References
Summary
In this tutorial we learn how to install go-rpm-templates
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).