EPEL (Extra Packages for Enterprise Linux)是基於Fedora的一個項目,爲「紅帽系」的操做系統提供額外的軟件包,適用於RHEL、CentOS和Scientific Linux.nginx
使用很簡單:
1. 首先咱們須要安裝一個叫」epel-release」的軟件包,這個軟件包會自動配置yum的軟件倉庫。固然你也能夠不安裝這個包,本身配置軟件倉庫也是同樣的。阿里雲
#用於RHEL5系列spa
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
code
rpm -ivh epel-release-5-4.noarch.rpm
#用於RHEL6系列xml
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
blog
rpm -ivh epel-release-6-5.noarch.rpm
2. 安裝完成以後你就能夠直接使用yum來安裝額外的軟件包了ci
yum clean all
get
yum makecache
it
yum install nginx pure-ftpd
3.直接本身手工添加軟件倉庫配置文件class
vi /etc/yum.repos.d/epel.repo
[epel]
name=epel
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-releasever&arch=releasever&arch=basearch
enabled=1
gpgcheck=0
CentOS6.5添加阿里雲的EPEL源
yum localinstall --nogpgcheck http://mirrors.aliyun.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
安裝阿里雲EPEL源
一、 首先卸載之前裝的epel以避免影響
rpm -e epel-release
二、 下載阿里提供的epel
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo
三、yum clean all
四、yum makecache
阿里雲源安裝示例:
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo