文章

How to Install EPEL and REMI Repository on CentOS/RedHat 7/6

原文: How to Install EPEL and REMI Repository on CentOS/RedHat 7/6

EPEL is known as Extra Packages for Enterprise Linux repository having lots of extra packages which is not added in official repositories. REMI is a third party repository provides latest version of packages which is already included in official repositories of CentOS and Red Hat.

This article will help you to install EPEL and REMI repository on CentOS and Red Hat 7/6/5 systems.

#Install EPEL Repository

EPEL release package is available under default CentOS repositories. So use the following command to install EPEL yum repository on your CentOS/RHEL 7/6/5 systems.

1
yum install epel-release

In the case of command doesn’t work for you, use one of below commands.

1
2
3
4
5
### For CentOS/RHEL 7 ###
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

### For CentOS/RHEL 6 ###
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

#Install REMI Repository

Use following commands to install REMI yum repository on your CentOS/RHEL 7/6/5 systems. Make sure you already have installed EPEL repository before installing REMI.

1
2
3
4
5
### For CentOS/RHEL 7 ###
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

### For CentOS/RHEL 6 ###
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

#List all Installed Repository

Use following command to list all installed yum repositories in your system.

1
yum repolist

Sample Output

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: pubmirrors.dal.corespace.com
 * epel: linux.mirrors.es.net
 * extras: mirrors.easynews.com
 * remi: mirrors.mediatemple.net
 * updates: mirrors.easynews.com
repo id                 repo name                                             status
base                    CentOS-6 - Base                                        6,518
epel                    Extra Packages for Enterprise Linux 6 - x86_64        11,153
extras                  CentOS-6 - Extras                                         37
pgdg91                  PostgreSQL 9.1 6 - x86_64                                279
pgdg93                  PostgreSQL 9.3 6 - x86_64                                307
puppetlabs-deps         Puppet Labs Dependencies El 6 - x86_64                    77
puppetlabs-products     Puppet Labs Products El 6 - x86_64                       475
remi                    Les RPM de remi pour Enterprise Linux 6 - x86_64       2,407
updates                 CentOS-6 - Updates                                       748
repolist: 22,001
本文由作者按照 CC BY 4.0 进行授权