To install the full tools-set including gfortran on centos 7:

yum install centos-release-scl
yum install devtoolset-8
scl enable devtoolset-8 -- bash

enable the tools:

source /opt/rh/devtoolset-8/enable 

you may wish to put the command above in .bash_profile

ref: https://unix.stackexchange.com/questions/477360/centos-7-gcc-8-installation

Answer from Karl Tarbet on Stack Overflow
Discussions

yum - Centos 7 gcc 8 installation - Unix & Linux Stack Exchange
Rather than adding it as a yum repo, I used wget to download all of the rpms from here: cbs.centos.org/repos/sclo7-devtoolset-8-rh-candidate/x86_64/os/… into a directory and then I ran yum install *.rpm. I then ran scl enable devtoolset-8 bash to change to GCC 8. More on unix.stackexchange.com
🌐 unix.stackexchange.com
October 23, 2018
When will Gcc 14 be available via gcc-toolset?
gcc-toolset 13 is currently in RHEL9.4, I wouldn't expect 14 to be in 8.10, and as a result, likely not going to land in RHEL8 now that it's transitioning to Maintenance Phase. It could land in RHEL9 later as part of an application stream. More on reddit.com
🌐 r/redhat
8
4
May 16, 2024
Installing devtoolset-X
$ sudo dnf search toolset Last metadata expiration check: 2:26:13 ago on Mon 15 Nov 2021 05:10:30 AM EST. ============================================= Name & Summary Matched: toolset ==== gcc-toolset-10.x86_64 : Package that installs gcc-toolset-10 gcc-toolset-10-runtime.x86_64 : Package that handles gcc-toolset-10 Software Collection. gcc-toolset-11.x86_64 : Package that installs gcc-toolset-11 gcc-toolset-11-runtime.x86_64 : Package that handles gcc-toolset-11 Software Collection. gcc-toolset-9.x86_64 : Package that installs gcc-toolset-9 gcc-toolset-9-runtime.x86_64 : Package that handles gcc-toolset-9 Software Collection. So do dnf-install gcc-toolset-X, then scl enable devtoolset-X bash More on reddit.com
🌐 r/AlmaLinux
1
7
November 15, 2021
Devtoolset is a game changer for C++ development on Linux

what is devtoolset ?

More on reddit.com
🌐 r/cpp
31
20
March 23, 2018
🌐
Tenable
tenable.com › plugins › nessus › 170353
RHEL 6 / 7 : devtoolset-8-gcc (RHSA-2020:0924)<!-- --> | Tenable®
January 23, 2023 - The remote Redhat Enterprise Linux ... languages, including C, C++, and Fortran. The devtoolset-8-gcc packages provide the Red Hat Developer Toolset version of GCC, as well as related libraries....
🌐
Red Hat
developers.redhat.com › blog › 2019 › 06 › 20 › developer-toolset-8-1-and-gcc-8-3-now-available-for-red-hat-enterprise-linux-7
Developer Toolset 8.1 and GCC 8.3 now available for Red Hat Enterprise Linux 7 | Red Hat Developer
March 28, 2023 - Red Hat Developer Toolset delivers GCC, GDB, and a set of complementary development tools for Red Hat Enterprise Linux via two release trains per year. We are pleased to share that Developer Toolset 8.1 with GCC 8.3 is now available and supported on Red Hat Enterprise Linux 7.
🌐
Centos
cbs.centos.org › koji › buildinfo
devtoolset-8-gcc-8.3.1-3.2.el6 | Build Info | CentOS Community Build Service
March 27, 2020 - Main Site Links: · Summary · Packages · Builds · Tasks · Build Targets · Users · Hosts · Reports · Search
Find elsewhere
🌐
Softwarecollections
softwarecollections.org › en › scls › rhscl › devtoolset-8
Developer Toolset 8 — Software Collections
# 1. Install a package with repository for your system: # On CentOS, install package centos-release-scl available in CentOS repository: $ sudo yum install centos-release-scl # On RHEL, enable RHSCL repository for you system: $ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms # 2. Install the collection: $ sudo yum install devtoolset-8 # 3. Start using software collections: $ scl enable devtoolset-8 bash · At this point you should be able to use gcc and other tools just as a normal application.
🌐
Fedora
copr.fedorainfracloud.org › coprs › mayeut › devtoolset-8 › package › devtoolset-8-gcc
Package devtoolset-8-gcc in mayeut/devtoolset-8
devtoolset-8-gcc · ( forked from mlampe/devtoolset-8 ) Project ID: 26531 · Overview · Packages · Builds · Monitor · Dist Git Repo: mayeut/devtoolset-8/devtoolset-8-gcc · Source Type: No default source ·
🌐
Unraveldata
unravel-docs.unraveldata.com › unravel-v4823 › en › install-gcc-compiler.html
Installing GNU Compiler Collection (GCC)
[unravel@host ~]$ scl enable devtoolset-8 bash # C compiler [unravel@host ~]$ gcc --version # C++ compiler [unravel@host ~]$ g++ --version
🌐
Lsst
pipelines.lsst.io › v › v19_0_0 › install › prereqs › centos.html
RedHat / CentOS system prerequisites — LSST Science Pipelines
New after 18.1: The gcc compiler to be used must support C++ 14. The gcc compiler version used in both Red Hat / CentOS 6 and 7 to verify the LSST Science Pipelines distribution is gcc 8.3.1, provided by devtoolset-8.
🌐
Oracle
blogs.oracle.com › linux › getting-started-with-oracle-arm-toolset-8
Getting Started with Oracle Arm Toolset 8 | linux
June 19, 2019 - oracle-armtoolset-8-gcc-8.2.0-6.el7_6.aarch64.rpm oracle-armtoolset-8-gcc-c++-8.2.0-6.el7_6.aarch64.rpm oracle-armtoolset-8-gcc-gdb-plugin-8.2.0-6.el7_6.aarch64.rpm . . . ... A few differences can be seen in the lists of packages. For example: oracle-armtoolset-8 includes the languages Ada and Go; devtoolset-8 includes an updated version of GNU make.
🌐
Pbone
rpm.pbone.net › info_idpl_74028891_distro_centos7_com_devtoolset-8-gcc-c++-8.3.1-3.el7.x86_64.rpm.html
RPM CentOS 7 devtoolset-8-gcc-c++ 8.3.1 x86_64 rpm
June 13, 2019 - Download ftp.icm.edu.pl devtoolset-8-gcc-c++-8.3.1-3.el7.x86_64.rpm ftp.icm.edu.pl devtoolset-8-gcc-c++-8.3.1-3.el7.x86_64.rpm ftp.icm.edu.pl devtoolset-8-gcc-c++-8.3.1-3.el7.x86_64.rpm ftp.icm.edu.pl devtoolset-8-gcc-c++-8.3.1-3.el7.x86_64.rpm Provides : devtoolset-8-gcc-c++ devtoolset-8-...