How To Install libffi-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libffi-devel.x86_64 in Amazon Linux 2. libffi-devel.x86_64 is Development files for libffi

Introduction

In this tutorial we learn how to install libffi-devel.x86_64 on Amazon Linux 2.

What is libffi-devel.x86_64

The libffi-devel package contains libraries and header files for developing applications that use libffi.

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

Install libffi-devel.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 libffi-devel.x86_64 using yum by running the following command:

sudo yum -y install libffi-devel.x86_64

How To Uninstall libffi-devel.x86_64 on Amazon Linux 2

To uninstall only the libffi-devel.x86_64 package we can use the following command:

sudo yum remove libffi-devel.x86_64

libffi-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/ffi-x86_64.h
/usr/include/ffi.h
/usr/include/ffitarget-x86_64.h
/usr/include/ffitarget.h
/usr/lib64/libffi.so
/usr/lib64/pkgconfig/libffi.pc
/usr/share/info/libffi.info.gz
/usr/share/man/man3/ffi.3.gz
/usr/share/man/man3/ffi_call.3.gz
/usr/share/man/man3/ffi_prep_cif.3.gz
/usr/share/man/man3/ffi_prep_cif_var.3.gz

References

Summary

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