How To Install gnu-efi-compat on Fedora 36

In this tutorial we learn how to install gnu-efi-compat in Fedora 36. gnu-efi-compat is Development Libraries and headers for EFI

Introduction

In this tutorial we learn how to install gnu-efi-compat on Fedora 36.

What is gnu-efi-compat

This package provides compatibility for building software utilizing gnu-efi which expects the directory layout from older versions of Fedora.

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

Install gnu-efi-compat 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 gnu-efi-compat using dnf by running the following command:

sudo dnf -y install gnu-efi-compat

Install gnu-efi-compat 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 gnu-efi-compat using yum by running the following command:

sudo yum -y install gnu-efi-compat

How To Uninstall gnu-efi-compat on Fedora 36

To uninstall only the gnu-efi-compat package we can use the following command:

sudo dnf remove gnu-efi-compat

gnu-efi-compat Package Contents on Fedora 36

/usr/include/efi/aarch64
/usr/include/efi/x86_64
/usr/lib/crt0-efi-ia32.o
/usr/lib/crt0-efi-x86_64.o
/usr/lib/elf_ia32_efi.lds
/usr/lib/elf_x86_64_efi.lds
/usr/lib/gnuefi/crt0-efi-ia32.o
/usr/lib/gnuefi/elf_ia32_efi.lds
/usr/lib/gnuefi/libefi.a
/usr/lib/gnuefi/libgnuefi.a
/usr/lib/libefi.a
/usr/lib/libgnuefi.a
/usr/lib64/gnuefi/crt0-efi-x64.o
/usr/lib64/gnuefi/crt0-efi-x86_64.o
/usr/lib64/gnuefi/elf_x64_efi.lds
/usr/lib64/gnuefi/elf_x86_64_efi.lds
/usr/lib64/gnuefi/libefi.a
/usr/lib64/gnuefi/libgnuefi.a
/usr/lib64/gnuefi/x64
/usr/lib64/libefi.a
/usr/lib64/libgnuefi.a

References

Summary

In this tutorial we learn how to install gnu-efi-compat on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).