前言: shell
163的源速度快(http://my.oschina.net/chocoball/blog/204249),但有的包不必定有。好比,没有好比。EPEL源用过以后都说很爽! vim
1、什么是EPEL 性能
若是既想得到 RHEL 的高质量、高性能、高可靠性,又须要方便易用(关键是免费)的软件包更新功能,那么 Fedora Project 推出的 EPEL(Extra Packages for Enterprise Linux)正好适合你。EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。
url
2、EPEL源使用感觉 spa
一、不用去换原来yum源,安装后会产生新repo .net
二、epel会有不少源地址,若是一个下不到,会去另一个下 code
3、CentOS 6.x X86_64 安装EPEL源 blog
第一步下载须要的RPM文件 ci
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmsudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
安装完成后会在/etc/yum.repos.d目录里加入到repo定义 rem
$ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/remi.repo
容许 remi 知识库
sudo vim /etc/yum.repos.d/remi.repo
编辑[remi]部分,将enabled 选项设置为 1,这样就容许 remi 知识库了。在[remi]部分最后加入 failovermethod=priority
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi failovermethod=priority
额外操做:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 #导入key yum install yum-priorities #安装yum install yum-priorities yum update #有新软件么?:)