CentOS / RHEL 7: Install GCC (C and C++ Compiler) and Development Tools

To install GCC (GNU Compiler Collection) and development tools on CentOS/Red Hat Enterprise Linux (RHEL) 7, follow these steps:

  1. Install the Development Tools package group:
sudo yum groupinstall "Development Tools"

This will install GCC, as well as other commonly used development tools such as make, automake, and others.

  1. Verify the installation by checking the version of GCC:
gcc --version

The output should show the version number of GCC that is installed on your system.

Note: If you need to install additional development libraries or tools, you can use the yum package manager to search for and install them. For example, you can use the following command to search for a package named foo:

sudo yum search foo

And you can use the following command to install the package:

sudo yum install package-name

This will install the development tools and libraries required to build and run C and C++ applications on your system.

Leave a Comment