How To Install mingw64-gcc on Fedora 36

In this tutorial we learn how to install mingw64-gcc in Fedora 36. mingw64-gcc is MinGW Windows cross-compiler (GCC) for C for the win64 target

Introduction

In this tutorial we learn how to install mingw64-gcc on Fedora 36.

What is mingw64-gcc

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

We can use yum or dnf to install mingw64-gcc on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mingw64-gcc.

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

sudo dnf -y install mingw64-gcc

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

sudo yum -y install mingw64-gcc

How To Uninstall mingw64-gcc on Fedora 36

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

sudo dnf remove mingw64-gcc

mingw64-gcc Package Contents on Fedora 36

/usr/bin/x86_64-w64-mingw32-gcc
/usr/bin/x86_64-w64-mingw32-gcc-11.2.1
/usr/bin/x86_64-w64-mingw32-gcc-ar
/usr/bin/x86_64-w64-mingw32-gcc-nm
/usr/bin/x86_64-w64-mingw32-gcc-ranlib
/usr/bin/x86_64-w64-mingw32-gcov
/usr/bin/x86_64-w64-mingw32-gcov-dump
/usr/bin/x86_64-w64-mingw32-gcov-tool
/usr/bin/x86_64-w64-mingw32-lto-dump
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/eee37f1d7db6fefe73100fc4ca0b42cf3e3eb1
/usr/lib/.build-id/16
/usr/lib/.build-id/16/5ef187e8a1a22bd3862ad6abb935e69ecb1770
/usr/lib/.build-id/30
/usr/lib/.build-id/30/c2fb2dce4f8dbf878ae2022065093180555a4d
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/7587e1b9100839905052734993de5d0f76fc65
/usr/lib/.build-id/72
/usr/lib/.build-id/72/958328e69f614d8a14770fe8de4ed32b925df1
/usr/lib/.build-id/82
/usr/lib/.build-id/82/1dc8880c9d1955ea378ab9332260ca70f227bc
/usr/lib/.build-id/87
/usr/lib/.build-id/87/92d8f2d310b5ff0f2bb00d5f8153cb31a2dcbc
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/057c11cf591f5d13a2c2b975c4c398f59db06c
/usr/lib/.build-id/93
/usr/lib/.build-id/93/926631396e2571f1808cdd77ced350a5e09bc4
/usr/lib/.build-id/a2/c40d86c1e93b54b80106d31728984d0e037847
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/a1228b15644edd26a76f4a13f676af64b168a2
/usr/lib/.build-id/df/811ca60b3cf9286ae7d3465f910591ffd6703d
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/a135c57e9b7d25b6cd6bb511035df2530b0d9d
/usr/lib/.build-id/f1/a135c57e9b7d25b6cd6bb511035df2530b0d9d.1
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/686758483fcf1c393122eb05ae10d41fda0294
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/crtbegin.o
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/crtend.o
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/crtfastmath.o
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include-fixed
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include-fixed/README
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include-fixed/limits.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include-fixed/syslimits.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ISO_Fortran_binding.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/acc_prof.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/adxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ammintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/amxbf16intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/amxint8intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/amxtileintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx2intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx5124fmapsintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx5124vnniwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512bf16intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512bf16vlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512bitalgintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512bwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512cdintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512dqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512erintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512fintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512ifmaintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512ifmavlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512pfintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vbmi2intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vbmi2vlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vbmiintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vbmivlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vlbwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vldqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vnniintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vnnivlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vp2intersectintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vp2intersectvlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vpopcntdqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avx512vpopcntdqvlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/avxvnniintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/bmi2intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/bmiintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/bmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/cet.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/cetintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/cldemoteintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/clflushoptintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/clwbintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/clzerointrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/cpuid.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/cross-stdarg.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/emmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/enqcmdintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/f16cintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/float.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/fma4intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/fmaintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/fxsrintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/gcov.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/gfniintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/hresetintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ia32intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/immintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/iso646.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/keylockerintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/lwpintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/lzcntintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/mm3dnow.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/mm_malloc.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/mmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/movdirintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/mwaitintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/mwaitxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/nmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/omp.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/openacc.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/pconfigintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/pkuintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/pmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/popcntintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/prfchwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/quadmath.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/quadmath_weak.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/rdseedintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/rtmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/serializeintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/sgxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/shaintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/smmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ssp
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ssp/ssp.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ssp/stdio.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ssp/string.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/ssp/unistd.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdalign.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdarg.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdatomic.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdbool.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stddef.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdfix.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdint-gcc.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdint.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/stdnoreturn.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/tbmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/tgmath.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/tmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/tsxldtrkintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/uintrintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/unwind.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/vaesintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/varargs.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/vpclmulqdqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/waitpkgintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/wbnoinvdintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/wmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/x86gprintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/x86intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xopintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xsavecintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xsaveintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xsaveoptintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xsavesintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/include/xtestintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/fixinc_list
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/gsyslimits.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/include
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/include/README
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/include/limits.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/macro_list
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/install-tools/mkheaders.conf
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/libgcc.a
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/libgcc_eh.a
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/libgcov.a
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/collect2
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/g++-mapper-server
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/install-tools
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/install-tools/fixinc.sh
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/install-tools/fixincl
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/install-tools/mkheaders
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/install-tools/mkinstalldirs
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/liblto_plugin.so
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/lto-wrapper
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/lto1
/usr/share/man/man1/x86_64-w64-mingw32-gcc.1.gz
/usr/share/man/man1/x86_64-w64-mingw32-gcov-dump.1.gz
/usr/share/man/man1/x86_64-w64-mingw32-gcov-tool.1.gz
/usr/share/man/man1/x86_64-w64-mingw32-gcov.1.gz
/usr/share/man/man1/x86_64-w64-mingw32-lto-dump.1.gz
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libatomic-1.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_seh-1.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libatomic.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libatomic.dll.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libgcc_s.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libssp.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libssp.dll.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libssp_nonshared.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libstdc++fs.a

References

Summary

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