How To Install mingw64-gcc on Rocky Linux 8
Introduction
In this tutorial we learn how to install mingw64-gcc
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mingw64-gcc.
Install mingw64-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 mingw64-gcc
using dnf
by running the following command:
sudo dnf -y install mingw64-gcc
Install mingw64-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 mingw64-gcc
using yum
by running the following command:
sudo yum -y install mingw64-gcc
How To Uninstall mingw64-gcc on Rocky Linux 8
To uninstall only the mingw64-gcc
package we can use the following command:
sudo dnf remove mingw64-gcc
mingw64-gcc Package Contents on Rocky Linux 8
/usr/bin/x86_64-w64-mingw32-gcc
/usr/bin/x86_64-w64-mingw32-gcc-7.2.0
/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/lib/.build-id
/usr/lib/.build-id/17/d2a7b8335af68a9b8a21b2adb273b990dd767f.1
/usr/lib/.build-id/2f/a9a71ef87a94096f0967d184ba3630d70ae4ab
/usr/lib/.build-id/49
/usr/lib/.build-id/49/3524322a460b9ea45ff0da1fa93ec471bca1d8
/usr/lib/.build-id/69
/usr/lib/.build-id/69/f857e3462c39d889f9bbd84f3f3de6b68a5a20
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/4e3d76a73da0a009c0c4caf9463a38ddbde205
/usr/lib/.build-id/7c/4e3d76a73da0a009c0c4caf9463a38ddbde205.1
/usr/lib/.build-id/7d/2eb165288c163452945814951506a0dc4654d9.1
/usr/lib/.build-id/b3/5ee1523ccb8a0b402583bf677de43bc6079a4e.1
/usr/lib/.build-id/bc/82b9ad050cd4532f936ee1f5f0ce3566aa725e
/usr/lib/.build-id/d7/6b2938c1463092ee5cd89838a647481b479068.1
/usr/lib/.build-id/e3/1b052181a89c1fe86a47b23f8b9cc4bbd3c485.1
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/bc37a87818ea3b9bf05d880c6ad5c00b277593
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/0a8657c8dcde38b8559e47803208785531c067
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/crtbegin.o
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/crtend.o
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/crtfastmath.o
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed/README
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed/limits.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed/syslimits.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/adxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ammintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx2intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx5124fmapsintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx5124vnniwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512bwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512cdintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512dqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512erintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512fintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512ifmaintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512ifmavlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512pfintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512vbmiintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512vbmivlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512vlbwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512vldqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512vlintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avx512vpopcntdqintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/avxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/bmi2intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/bmiintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/bmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/clflushoptintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/clwbintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/clzerointrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/cpuid.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/cross-stdarg.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/emmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/f16cintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/float.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/fma4intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/fmaintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/fxsrintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/gcov.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ia32intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/immintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/iso646.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/lwpintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/lzcntintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/mm3dnow.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/mm_malloc.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/mmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/mwaitxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/nmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/omp.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/openacc.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/pkuintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/pmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/popcntintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/prfchwintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/quadmath.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/quadmath_weak.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/rdseedintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/rtmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/sgxintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/shaintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/smmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ssp
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ssp/ssp.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ssp/stdio.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ssp/string.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/ssp/unistd.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdalign.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdarg.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdatomic.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdbool.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stddef.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdfix.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdint-gcc.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdint.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/stdnoreturn.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/tbmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/tgmath.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/tmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/unwind.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/varargs.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/wmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/x86intrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xmmintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xopintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xsavecintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xsaveintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xsaveoptintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xsavesintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/xtestintrin.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/fixinc_list
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/gsyslimits.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/include
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/include/README
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/include/limits.h
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/macro_list
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/install-tools/mkheaders.conf
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/libgcc.a
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/libgcc_eh.a
/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/libgcov.a
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/collect2
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/install-tools
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/install-tools/fixinc.sh
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/install-tools/fixincl
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/install-tools/mkheaders
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/install-tools/mkinstalldirs
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/liblto_plugin.so
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/liblto_plugin.so.0
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/liblto_plugin.so.0.0.0
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/lto-wrapper
/usr/libexec/gcc/x86_64-w64-mingw32/7.2.0/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/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
References
Summary
In this tutorial we learn how to install mingw64-gcc
on Rocky Linux 8 using yum and dnf.