How To Install package-notes-srpm-macros on Fedora 36

In this tutorial we learn how to install package-notes-srpm-macros in Fedora 36. package-notes-srpm-macros is Generate a linker script to insert .note.package section

Introduction

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

What is package-notes-srpm-macros

RPM macros to inject a linker script into link flags and a helper to generate a script that inserts a section with an ELF note with a JSON payload that describes the package the binary was built for.

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

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

sudo dnf -y install package-notes-srpm-macros

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

sudo yum -y install package-notes-srpm-macros

How To Uninstall package-notes-srpm-macros on Fedora 36

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

sudo dnf remove package-notes-srpm-macros

package-notes-srpm-macros Package Contents on Fedora 36

/usr/lib/rpm/generate-rpm-note.sh
/usr/lib/rpm/macros.d/macros.package-notes-srpm

References

Summary

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