EPEL源

   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
rpm -ivh epel-release-5-4.noarch.rpm
code

#用於RHEL6系列xml

wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -ivh epel-release-6-5.noarch.rpm
blog

2. 安裝完成以後你就能夠直接使用yum來安裝額外的軟件包了ci

yum clean allget

yum makecache
yum install nginx pure-ftpd
it

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

阿里雲源安裝示例:

Epel

一、備份(若有配置其餘epel源)

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

二、下載新repo 到/etc/yum.repos.d/

epel(RHEL 7)

 
	wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
            

epel(RHEL 6)

 
	wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
            

epel(RHEL 5)

 

	wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
            
相關文章
相關標籤/搜索