Upgrade GCC compiler

Latest response

I have RHEL 7.3 workstation installed on my system and using GCC-4.8.5 that was installed with developer toolset. I need to use GCC compiler 5.3 or above so wondering how to upgrade. Can i do it using Yum or do I have to download GCC from GNU's website and then install it.

Responses

The default compiler for RHEL7 is gcc 4.8.x. You can get 5.3 from Red Hat Developer Tool Set provided you have an active Red Hat Enterprise Linux Developer subscription.

What gcc versions are available in Red Hat Enterprise Linux?

If you want the Developer Toolset version of gcc 5.3, you'll want DTS 4.1 which you can do a yum install on and it will install alongside your 4.8 version. Btw, if you want gcc 6, DTS6 is now GA. (Note that we skipped naming DTS 5 so that gcc and DTS version numbers would match)

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.