upgrade gcc and gfortran

Issues related to applications and software problems
Post Reply
abdossamad2003
Posts: 71
Joined: 2015/10/06 11:17:19

upgrade gcc and gfortran

Post by abdossamad2003 » 2018/07/26 13:30:24

hi centos expert
how can i upgrade gfortran (and gcc) installed in my centos?
my centos is 7 and gfortran version is 4.8.5
in gnu website the last version of gfortran is 8.*

Many Thanks
samad

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: upgrade gcc and gfortran

Post by TrevorH » 2018/07/26 15:28:20

Those are the versions we ship as part of the distro. Please see https://access.redhat.com/security/updates/backporting/ for information abou thow packages are managed in CentOS/RHEL and how they stay the same version from initial release until EOL.

If you need newer gcc etc then you may want to look at the various devtoolset SCL packages.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

abdossamad2003
Posts: 71
Joined: 2015/10/06 11:17:19

Re: upgrade gcc and gfortran

Post by abdossamad2003 » 2018/07/28 14:57:47

Thanks for answer
I am new player and i am looking to simplest way to update gfortran. how can i do this

[samad@localhost ~]$ gfortran --version
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

Thanks in advance
samad

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: upgrade gcc and gfortran

Post by Mike_Rochefort » 2018/08/02 12:31:54

Either use the SCL repositories, or build GCC yourself. Those are really your only two options.

The latest available to us prepackaged is GCC 7, which can be found in devtoolset-7:

https://www.softwarecollections.org/en/ ... toolset-7/

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

Post Reply