How To Install mingw64-gcc-gfortran on Fedora 36

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

Introduction

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

What is mingw64-gcc-gfortran

MinGW Windows cross-compiler for FORTRAN for the win64 target.

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

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

sudo dnf -y install mingw64-gcc-gfortran

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

sudo yum -y install mingw64-gcc-gfortran

How To Uninstall mingw64-gcc-gfortran on Fedora 36

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

sudo dnf remove mingw64-gcc-gfortran

mingw64-gcc-gfortran Package Contents on Fedora 36

/usr/bin/x86_64-w64-mingw32-gfortran
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/40ed1e14a5cfd1b6276f8bffa5b6072e860b49
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/1b2201753ea143ca824f994741bf0ddbe529ef
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/ieee_arithmetic.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/ieee_exceptions.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/ieee_features.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/omp_lib.f90
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/omp_lib.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/omp_lib.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/omp_lib_kinds.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/openacc.f90
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/openacc.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/openacc_kinds.mod
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/finclude/openacc_lib.h
/usr/lib/gcc/x86_64-w64-mingw32/11.2.1/libcaf_single.a
/usr/libexec/gcc/x86_64-w64-mingw32/11.2.1/f951
/usr/share/man/man1/x86_64-w64-mingw32-gfortran.1.gz
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgfortran-5.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libquadmath-0.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libgfortran.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libgfortran.dll.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libgfortran.spec
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libquadmath.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libquadmath.dll.a

References

Summary

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