How To Install fonts-srpm-macros on Fedora 36

In this tutorial we learn how to install fonts-srpm-macros in Fedora 36. fonts-srpm-macros is Source-stage rpm automation for fonts packages

Introduction

In this tutorial we learn how to install fonts-srpm-macros on Fedora 36.

What is fonts-srpm-macros

This package provides SRPM-stage rpm automation to simplify the creation of fonts packages. It limits itself to the automation subset required to create fonts SRPM packages and needs to be included in the default build root. The rest of the automation is provided by the fonts-rpm-macros package, that fonts-srpm-macros will pull in for fonts packages only.

We can use yum or dnf to install fonts-srpm-macros on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install fonts-srpm-macros.

Install fonts-srpm-macros 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 fonts-srpm-macros using dnf by running the following command:

sudo dnf -y install fonts-srpm-macros

Install fonts-srpm-macros 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 fonts-srpm-macros using yum by running the following command:

sudo yum -y install fonts-srpm-macros

How To Uninstall fonts-srpm-macros on Fedora 36

To uninstall only the fonts-srpm-macros package we can use the following command:

sudo dnf remove fonts-srpm-macros

fonts-srpm-macros Package Contents on Fedora 36

/usr/lib/rpm/lua/fedora/srpm/fonts.lua
/usr/lib/rpm/macros.d/macros.fonts-srpm
/usr/share/doc/fonts-rpm-macros
/usr/share/doc/fonts-rpm-macros/README.md
/usr/share/doc/fonts-rpm-macros/changelog.txt
/usr/share/licenses/fonts-rpm-macros
/usr/share/licenses/fonts-rpm-macros/LICENSE.txt

References

Summary

In this tutorial we learn how to install fonts-srpm-macros on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).