How To Install mingw32-gcc on Fedora 36

In this tutorial we learn how to install mingw32-gcc in Fedora 36. 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 Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mingw32-gcc.

Install mingw32-gcc on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove mingw32-gcc

mingw32-gcc Package Contents on Fedora 36

/usr/bin/i686-w64-mingw32-gcc
/usr/bin/i686-w64-mingw32-gcc-11.2.1
/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/bin/i686-w64-mingw32-lto-dump
/usr/i686-w64-mingw32/sys-root/mingw/bin/libatomic-1.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_dw2-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/i686-w64-mingw32/sys-root/mingw/lib/libstdc++fs.a
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/07207c95c1d27ac3f550938ae15fc8487cfbac
/usr/lib/.build-id/54
/usr/lib/.build-id/54/35e3413f25768a1227955874aa748586b9a729
/usr/lib/.build-id/54/35e3413f25768a1227955874aa748586b9a729.1
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/5e05307f582c2025702fdad20544e58134e610
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/6a0a83240873719bf138c4a89711a36d96c12a
/usr/lib/.build-id/71
/usr/lib/.build-id/71/4cd0d2bf846bdd38e969deadf6756c305117df
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/0b0755ae3edb779202d7f8d924c63bf9bb7f20
/usr/lib/.build-id/94
/usr/lib/.build-id/94/6c6777b0f93fb430ea5839aba3989621013f15
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/72141abf92700a55d89e9c8f1a4675d88d644b
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/daab5fcfb5c30f0d1d7f4e4aa6f6f0a14d54d1
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/05aa88d1189a40ec683be0a600e33be93b441c
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/e0819c20d04ab8c236c58a58f69bc23d1bfea0
/usr/lib/.build-id/df
/usr/lib/.build-id/df/aee7532deac7b73497f378c179bc0655efcfc9
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/43830571370da66b480febf88c3dfd69e4754c
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/70c86641849b00a65d242d6648eb17ff8a4a16
/usr/lib/gcc/i686-w64-mingw32/11.2.1
/usr/lib/gcc/i686-w64-mingw32/11.2.1/crtbegin.o
/usr/lib/gcc/i686-w64-mingw32/11.2.1/crtend.o
/usr/lib/gcc/i686-w64-mingw32/11.2.1/crtfastmath.o
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include-fixed
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include-fixed/README
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include-fixed/limits.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include-fixed/syslimits.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ISO_Fortran_binding.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/acc_prof.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/adxintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ammintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/amxbf16intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/amxint8intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/amxtileintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx2intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx5124fmapsintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx5124vnniwintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512bf16intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512bf16vlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512bitalgintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512bwintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512cdintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512dqintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512erintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512fintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512ifmaintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512ifmavlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512pfintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vbmi2intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vbmi2vlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vbmiintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vbmivlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vlbwintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vldqintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vnniintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vnnivlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vp2intersectintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vp2intersectvlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vpopcntdqintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avx512vpopcntdqvlintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avxintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/avxvnniintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/bmi2intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/bmiintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/bmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/cet.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/cetintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/cldemoteintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/clflushoptintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/clwbintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/clzerointrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/cpuid.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/cross-stdarg.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/emmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/enqcmdintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/f16cintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/float.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/fma4intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/fmaintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/fxsrintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/gcov.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/gfniintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/hresetintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ia32intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/immintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/iso646.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/keylockerintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/lwpintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/lzcntintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/mm3dnow.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/mm_malloc.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/mmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/movdirintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/mwaitintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/mwaitxintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/nmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/omp.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/openacc.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/pconfigintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/pkuintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/pmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/popcntintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/prfchwintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/quadmath.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/quadmath_weak.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/rdseedintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/rtmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/serializeintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/sgxintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/shaintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/smmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ssp
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ssp/ssp.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ssp/stdio.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ssp/string.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/ssp/unistd.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdalign.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdarg.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdatomic.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdbool.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stddef.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdfix.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdint-gcc.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdint.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/stdnoreturn.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/tbmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/tgmath.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/tmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/tsxldtrkintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/uintrintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/unwind.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/vaesintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/varargs.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/vpclmulqdqintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/waitpkgintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/wbnoinvdintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/wmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/x86gprintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/x86intrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xmmintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xopintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xsavecintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xsaveintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xsaveoptintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xsavesintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/include/xtestintrin.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/fixinc_list
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/gsyslimits.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/include
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/include/README
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/include/limits.h
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/macro_list
/usr/lib/gcc/i686-w64-mingw32/11.2.1/install-tools/mkheaders.conf
/usr/lib/gcc/i686-w64-mingw32/11.2.1/libgcc.a
/usr/lib/gcc/i686-w64-mingw32/11.2.1/libgcc_eh.a
/usr/lib/gcc/i686-w64-mingw32/11.2.1/libgcov.a
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/collect2
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/g++-mapper-server
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/install-tools
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/install-tools/fixinc.sh
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/install-tools/fixincl
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/install-tools/mkheaders
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/install-tools/mkinstalldirs
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/liblto_plugin.so
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/lto-wrapper
/usr/libexec/gcc/i686-w64-mingw32/11.2.1/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
/usr/share/man/man1/i686-w64-mingw32-lto-dump.1.gz

References

Summary

In this tutorial we learn how to install mingw32-gcc on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).