How to Install GCC Compiler on CentOS 7

Install GCC Compiler on CentOS 7

In this article, we will have explained the necessary steps to install and configure GCC Compiler on CentOS 7. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

GCC or GNU Compiler Collection is released by the Free Software Foundation and as the name suggests, it is a very useful collection of programming compilers such as C, C++, Objective-C, Objective-C++, Fortran, Java, Go and Ada. Many open source projects including the GNU tools and the Linux kernel are compiled with GCC.

Install GCC Compiler on CentOS

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install GCC Compiler.

To install gcc compiler and development tools by issue the following command:

If you want to check if gcc is installed successfully, just issue the following command:

Congratulation, you have learned how to install and configure GCC on CentOS 7. If you have any question, please leave a comment below.