How To Install gnu-efi on Rocky Linux 8

In this tutorial we learn how to install gnu-efi on Rocky Linux 8. gnu-efi is Development Libraries and headers for EFI

Introduction

In this tutorial we learn how to install gnu-efi on Rocky Linux 8.

What is gnu-efi

This package contains development headers and libraries for developing applications that run under EFI (Extensible Firmware Interface).

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

Install gnu-efi on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gnu-efi using dnf by running the following command:

sudo dnf -y install gnu-efi

Install gnu-efi on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gnu-efi using yum by running the following command:

sudo yum -y install gnu-efi

How To Uninstall gnu-efi on Rocky Linux 8

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

sudo dnf remove gnu-efi

gnu-efi Package Contents on Rocky Linux 8

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

References

Summary

In this tutorial we learn how to install gnu-efi on Rocky Linux 8 using yum and dnf.