How To Install mingw32-gcc on Rocky Linux 8

In this tutorial we learn how to install mingw32-gcc on Rocky Linux 8. mingw32-gcc is MinGW Windows cross-compiler (GCC) for C for the win32 target

Introduction

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

What is mingw32-gcc

MinGW Windows cross-compiler (GCC) for C for the win32 target.

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

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

sudo dnf -y install mingw32-gcc

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

sudo yum -y install mingw32-gcc

How To Uninstall mingw32-gcc on Rocky Linux 8

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

sudo dnf remove mingw32-gcc

mingw32-gcc Package Contents on Rocky Linux 8

/usr/bin/i686-w64-mingw32-gcc
/usr/bin/i686-w64-mingw32-gcc-7.2.0
/usr/bin/i686-w64-mingw32-gcc-ar
/usr/bin/i686-w64-mingw32-gcc-nm
/usr/bin/i686-w64-mingw32-gcc-ranlib
/usr/bin/i686-w64-mingw32-gcov
/usr/bin/i686-w64-mingw32-gcov-dump
/usr/bin/i686-w64-mingw32-gcov-tool
/usr/i686-w64-mingw32/sys-root/mingw/bin/libatomic-1.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
/usr/i686-w64-mingw32/sys-root/mingw/lib/libatomic.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libatomic.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libgcc_s.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libssp.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libssp.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libssp_nonshared.a
/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/d2a7b8335af68a9b8a21b2adb273b990dd767f
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/88cda96bfb5d3e0093bee45df508de76ebdf4a
/usr/lib/.build-id/1d/88cda96bfb5d3e0093bee45df508de76ebdf4a.1
/usr/lib/.build-id/61
/usr/lib/.build-id/61/674c8653ea5d39a91493bac58c295bda6a84c6
/usr/lib/.build-id/77
/usr/lib/.build-id/77/d43aa6c4738a211297b787130bcbd1ac351388
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/2eb165288c163452945814951506a0dc4654d9
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/5ee1523ccb8a0b402583bf677de43bc6079a4e
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/4947de2d63e3f88b239b446184b0297188a219
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/6c06d90773c37fdef596f18903efaa2976a219
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/6b2938c1463092ee5cd89838a647481b479068
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/1fb87844d9d4d7508b7eae05d19ec953473d9b
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/1b052181a89c1fe86a47b23f8b9cc4bbd3c485
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/a17bec99b6e3a54f50eb2a63c6adb5aefb3eff
/usr/lib/gcc/i686-w64-mingw32/7.2.0
/usr/lib/gcc/i686-w64-mingw32/7.2.0/crtbegin.o
/usr/lib/gcc/i686-w64-mingw32/7.2.0/crtend.o
/usr/lib/gcc/i686-w64-mingw32/7.2.0/crtfastmath.o
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include-fixed
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include-fixed/README
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include-fixed/limits.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include-fixed/syslimits.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/adxintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ammintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx2intrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx5124fmapsintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx5124vnniwintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512bwintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512cdintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512dqintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512erintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512fintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512ifmaintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512ifmavlintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512pfintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512vbmiintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512vbmivlintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512vlbwintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512vldqintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512vlintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avx512vpopcntdqintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/avxintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/bmi2intrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/bmiintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/bmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/clflushoptintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/clwbintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/clzerointrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/cpuid.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/cross-stdarg.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/emmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/f16cintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/float.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/fma4intrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/fmaintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/fxsrintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/gcov.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ia32intrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/immintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/iso646.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/lwpintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/lzcntintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/mm3dnow.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/mm_malloc.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/mmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/mwaitxintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/nmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/omp.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/openacc.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/pkuintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/pmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/popcntintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/prfchwintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/quadmath.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/quadmath_weak.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/rdseedintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/rtmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/sgxintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/shaintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/smmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ssp
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ssp/ssp.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ssp/stdio.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ssp/string.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/ssp/unistd.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdalign.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdarg.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdatomic.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdbool.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stddef.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdfix.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdint-gcc.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdint.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/stdnoreturn.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/tbmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/tgmath.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/tmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/unwind.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/varargs.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/wmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/x86intrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xopintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xsavecintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xsaveintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xsaveoptintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xsavesintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/include/xtestintrin.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/fixinc_list
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/gsyslimits.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/include
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/include/README
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/include/limits.h
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/macro_list
/usr/lib/gcc/i686-w64-mingw32/7.2.0/install-tools/mkheaders.conf
/usr/lib/gcc/i686-w64-mingw32/7.2.0/libgcc.a
/usr/lib/gcc/i686-w64-mingw32/7.2.0/libgcc_eh.a
/usr/lib/gcc/i686-w64-mingw32/7.2.0/libgcov.a
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/collect2
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/install-tools
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/install-tools/fixinc.sh
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/install-tools/fixincl
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/install-tools/mkheaders
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/install-tools/mkinstalldirs
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/liblto_plugin.so
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/liblto_plugin.so.0
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/liblto_plugin.so.0.0.0
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/lto-wrapper
/usr/libexec/gcc/i686-w64-mingw32/7.2.0/lto1
/usr/share/man/man1/i686-w64-mingw32-gcc.1.gz
/usr/share/man/man1/i686-w64-mingw32-gcov-dump.1.gz
/usr/share/man/man1/i686-w64-mingw32-gcov-tool.1.gz
/usr/share/man/man1/i686-w64-mingw32-gcov.1.gz

References

Summary

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