Home > English > Tutorials > How to install epel and remi repositories on centos

How to install epel and remi repositories on centos

 

Yum repository is not always enough for you to use. You need to add some repositories such as epel and remi

-link epel centos 6 : http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

-link remi centos 6 : http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

-link epel centos 7 : http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

-link remi centos 7 : http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

I. Install an epel repository

step 1 : Creat a directory to store downloaded files 

# mkdir /download

step 2 : Install a wget package (wget is a command used to download files

# yum install wget -y

step 3 : Download files of epel repository into the download directory

# cd /download/

# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

step 4 : Install

You use the command Is to see the downloaded files

# ls

Then you use the command rpm -Uvh <file name> to install

# rpm -Uvh epel-release-6-8.noarch.rpm

step 5 : enable the epel repository functionlity (epel repository is disabled by default so you need to enable it)

You get access to the directory <yum.repos.d> (the directory storing installing repository packages

# cd /etc/yum.repos.d/

edit the file epel.repo

# nano epel.repo

the phrase <enabled=0> needs to be changed into <enabled=1>

Then you save it and quit

 

II. Install remi repository 

 

step 1 : Download files of remi repository into download directory

# cd /download/

# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

step 2 : Install

Youu use the command Is to see the dowloaded files

# ls

Then you use the command rpm -Uvh <file name> to install 

# rpm -Uvh remi-release-6.rpm

step 3 : Enable the remi repository functionality (the remi repository is disabled by default so you need to enable it

You access the directory <yum.repos.d> (the directory storing installing repository packages

# cd /etc/yum.repos.d/

edit the file <remi.repo>

# nano remi.repo

the phrase <enabled=0> needs to be changed into <enabled=1>

Then you save it and quit

*Note: 

-After installing you should update your system

-You can see repositories that you need to install and enable by running these commands

# yum repolist

- Some storing repositories such as Remi is disabled by default. To list them, you run these commands

# yum repolist disabled