How To Install gcc-toolset-10-gcc-gfortran on Rocky Linux 8

In this tutorial we learn how to install gcc-toolset-10-gcc-gfortran on Rocky Linux 8. gcc-toolset-10-gcc-gfortran is Fortran support for GCC 10

Introduction

In this tutorial we learn how to install gcc-toolset-10-gcc-gfortran on Rocky Linux 8.

What is gcc-toolset-10-gcc-gfortran

The gcc-toolset-10-gcc-gfortran package provides support for compiling Fortran programs with the GNU Compiler Collection.

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

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

sudo dnf -y install gcc-toolset-10-gcc-gfortran

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

sudo yum -y install gcc-toolset-10-gcc-gfortran

How To Uninstall gcc-toolset-10-gcc-gfortran on Rocky Linux 8

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

sudo dnf remove gcc-toolset-10-gcc-gfortran

gcc-toolset-10-gcc-gfortran Package Contents on Rocky Linux 8

/opt/rh/gcc-toolset-10/root/usr/bin/gfortran
/opt/rh/gcc-toolset-10/root/usr/lib/gcc
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/ieee_arithmetic.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/ieee_exceptions.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/ieee_features.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/omp_lib.f90
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/omp_lib.h
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/omp_lib.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/omp_lib_kinds.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/openacc.f90
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/openacc.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/openacc_kinds.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/finclude/openacc_lib.h
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/libcaf_single.a
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/libgfortran.a
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/libgfortran.so
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/32/libgfortran_nonshared.a
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/ieee_arithmetic.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/ieee_exceptions.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/ieee_features.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/omp_lib.f90
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/omp_lib.h
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/omp_lib.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/omp_lib_kinds.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/openacc.f90
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/openacc.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/openacc_kinds.mod
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/finclude/openacc_lib.h
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/include/ISO_Fortran_binding.h
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/libcaf_single.a
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/libgfortran.a
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/libgfortran.so
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/libgfortran.spec
/opt/rh/gcc-toolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/libgfortran_nonshared.a
/opt/rh/gcc-toolset-10/root/usr/libexec/gcc
/opt/rh/gcc-toolset-10/root/usr/libexec/gcc/x86_64-redhat-linux
/opt/rh/gcc-toolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10
/opt/rh/gcc-toolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/f951
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2002.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2002.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2003.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2003.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2004.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2004.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2005.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2005.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2006.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2006.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2007.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2007.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2008.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2008.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2009.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2009.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2010.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2010.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2011.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2011.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2012.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2012.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2013.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2013.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2014.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2014.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2015.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2015.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2016.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2016.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2017.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2017.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2018.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2018.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2019.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog-2019.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog.libgfortran.bz2
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-gcc-gfortran/ChangeLog.ptr.bz2
/opt/rh/gcc-toolset-10/root/usr/share/info/gfortran.info.gz
/opt/rh/gcc-toolset-10/root/usr/share/man/man1/gfortran.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/49e0c6e1646bcdbe66db63ee86f319452f42aa
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/7c28971a452e1219f47c223174cdca64628ed8

References

Summary

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