How to Enable EPEL and Remi Repository into CentOS 6

CentOS is a popular Linux distribution used for server and desktop environments. Enabling third-party repositories such as EPEL and Remi can provide access to additional software packages that are not available in the default CentOS repositories. In this guide, we will show you how to enable EPEL and Remi repositories into CentOS 6.

Step 1: Install EPEL Repository

To install EPEL repository on CentOS 6, run the following command as the root user:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

This command will download and install the latest version of EPEL repository into your CentOS 6 system.

[root@centos6 ~]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

Step 2: Install Remi Repository

To install Remi repository on CentOS 6, run the following command as the root user:

rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-6.rpm

This command will download and install the latest version of Remi repository into your CentOS 6 system.

[root@centos6 ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Preparing...                ########################################### [100%]
   1:remi-release           ########################################### [100%]

Step 3: Enable Remi repository

By default, Remi repository is disabled. To enable it, open the Remi configuration file in a text editor:

vi /etc/yum.repos.d/remi.repo

Find the following line:

enabled=0

Change the value to 1 to enable Remi repository:

enabled=1

Save and exit the text editor.

See also  How to Install VMware Tools using yum on CentOS, RHEL, and other Red Hat-based Systems

Step 4: Test

To test whether the EPEL and Remi repositories have been enabled successfully, run the following command as the root user:

yum list | grep epel

This command will list all the packages available in the EPEL repository. Similarly, run the following command to list all the packages available in the Remi repository:

yum list | grep remi

If the repositories have been enabled successfully, you should see a list of packages available in each repository.

Conclusion:

Enabling EPEL and Remi repositories can provide access to additional software packages that are not available in the default CentOS repositories. In this guide, we have shown you how to enable EPEL and Remi repositories into CentOS 6. Remember to always use caution when installing third-party software and ensure that you trust the source of the software.

Comments

Leave a Reply

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