How To Install mingw32-libffi on Rocky Linux 8

In this tutorial we learn how to install mingw32-libffi on Rocky Linux 8. mingw32-libffi is A portable foreign function interface library for MinGW

Introduction

In this tutorial we learn how to install mingw32-libffi on Rocky Linux 8.

What is mingw32-libffi

Foreign function interface library for MinGW.

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

Install mingw32-libffi 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 mingw32-libffi using dnf by running the following command:

sudo dnf -y install mingw32-libffi

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

sudo yum -y install mingw32-libffi

How To Uninstall mingw32-libffi on Rocky Linux 8

To uninstall only the mingw32-libffi package we can use the following command:

sudo dnf remove mingw32-libffi

mingw32-libffi Package Contents on Rocky Linux 8

/usr/i686-w64-mingw32/sys-root/mingw/bin/libffi-6.dll
/usr/i686-w64-mingw32/sys-root/mingw/lib/libffi-3.1
/usr/i686-w64-mingw32/sys-root/mingw/lib/libffi-3.1/include
/usr/i686-w64-mingw32/sys-root/mingw/lib/libffi-3.1/include/ffi.h
/usr/i686-w64-mingw32/sys-root/mingw/lib/libffi-3.1/include/ffitarget.h
/usr/i686-w64-mingw32/sys-root/mingw/lib/libffi.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libffi.pc
/usr/share/doc/mingw32-libffi
/usr/share/doc/mingw32-libffi/README
/usr/share/licenses/mingw32-libffi
/usr/share/licenses/mingw32-libffi/LICENSE

References

Summary

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