How To Install kernel-srpm-macros on Fedora 36

In this tutorial we learn how to install kernel-srpm-macros in Fedora 36. kernel-srpm-macros is RPM macros that list arches the full kernel is built on

Introduction

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

What is kernel-srpm-macros

This packages contains the rpm macro that list what arches the full kernel is built on. The variable to use is kernel_arches.

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

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

sudo dnf -y install kernel-srpm-macros

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

sudo yum -y install kernel-srpm-macros

How To Uninstall kernel-srpm-macros on Fedora 36

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

sudo dnf remove kernel-srpm-macros

kernel-srpm-macros Package Contents on Fedora 36

/usr/lib/rpm/fileattrs/kmod.attr
/usr/lib/rpm/macros.d/macros.kernel-srpm

References

Summary

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