How To Install gnu-efi.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gnu-efi.x86_64 in Amazon Linux 2. gnu-efi.x86_64 is Development Libraries and headers for EFI

Introduction

In this tutorial we learn how to install gnu-efi.x86_64 on Amazon Linux 2.

What is gnu-efi.x86_64

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

We can use yum to install gnu-efi.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gnu-efi.x86_64.

Install gnu-efi.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install gnu-efi.x86_64

How To Uninstall gnu-efi.x86_64 on Amazon Linux 2

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

sudo yum remove gnu-efi.x86_64

gnu-efi.x86_64 Package Contents on Amazon Linux 2

/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-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/libefi.a
/usr/lib64/libgnuefi.a

References

Summary

In this tutorial we learn how to install gnu-efi.x86_64 on Amazon Linux 2 using yum.