How To Install mingw32-cpp on Rocky Linux 8

In this tutorial we learn how to install mingw32-cpp on Rocky Linux 8. mingw32-cpp is MinGW Windows cross-C Preprocessor for the win32 target

Introduction

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

What is mingw32-cpp

MinGW Windows cross-C Preprocessor for the win32 target.

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

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

sudo dnf -y install mingw32-cpp

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

sudo yum -y install mingw32-cpp

How To Uninstall mingw32-cpp on Rocky Linux 8

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

sudo dnf remove mingw32-cpp

mingw32-cpp Package Contents on Rocky Linux 8

/usr/bin/i686-w64-mingw32-cpp
/usr/lib/.build-id
/usr/lib/.build-id/85
/usr/lib/.build-id/85/96a2cb40866c9e4046cb06797e85f35ef94438
/usr/lib/.build-id/db
/usr/lib/.build-id/db/18d1e1e14610501038b401609c531130d10bc5
/usr/lib/gcc/i686-w64-mingw32
/usr/lib/gcc/i686-w64-mingw32/7.2.0
/usr/libexec/gcc/i686-w64-mingw32
/usr/libexec/gcc/i686-w64-mingw32/7.2.0
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/cc1
/usr/share/man/man1/i686-w64-mingw32-cpp.1.gz

References

Summary

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