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
            
相关文章
相关标签/搜索