How to Install gcc on CentOS 6.2

In this post, i will show you on how to install gcc package. The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project supporting various programming languages. The compiler is designed to support multiple front-ends and multiple back-ends by translating first into Register Transfer Language and from there into assembly code for the target architecture. Assume that you have installed minimal installation type CentOS 6.2 and has setup your own local yum repository. You can use internet CentOS yum repository instead if you have direct internet connection to your server.

READ  How to Check Concurrent user using Netstat Command on Linux Web Server

How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on CentOS 6.2

Simply run yum command to install the gcc.

    [root@centos6 ~]# yum install gcc
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base:
     * extras:
     * updates:
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package gcc.i686 0:4.4.6-3.el6 will be installed
    --> Finished Dependency Resolution
    Dependencies Resolved
     Package       Arch           Version                  Repository                      Size
     gcc           i686           4.4.6-3.el6              CentOS6.2-Repository           8.2 M
    Transaction Summary
    Install       1 Package(s)
    Total download size: 8.2 M
    Installed size: 15 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : gcc-4.4.6-3.el6.i686                                                     1/1
      gcc.i686 0:4.4.6-3.el6
Leave a Reply

Your email address will not be published. Required fields are marked *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee