EPEL(企业版 Linux 附加软件包Extra Packages for Enterprise Linux)是一个由特别兴趣小组创建、维护并管理,针对红帽企业版Linux(RHEL)及其衍生发行版(比如 CentOS、Scientific Linux、Oracle Enterprise Linux)提供高质量附加软件包。
EPEL 的软件包通常不会与企业版 Linux 官方源中的软件包发生冲突,或者互相替换文件。
手动下载地址:http://dl.fedoraproject.org/pub/epel/
安装方法
1.yum 安装
yum install epel-release -y
CentOS 用户可以直接通过 yum安装并启用 EPEL 源。CentOS Extras 默认包含该包。CentOS-6.8通过yum安装的是最新版本。
2.rpm包安装
yum install yum-priorities
rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
以上URL请按实际情况修改
导入key:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
编辑优先级,在[epel]最后添加一条属性 priority=11
vi /etc/yum.repos.d/epel.repo
重建缓存:
yum makecache
[root@localhost ~]# yum repolist
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.163.com
* remi-safe: mirror.innosol.asia
* updates: mirrors.163.com
108 packages excluded due to repository priority protections
repo id repo name status
base CentOS-6 - Base 6,610+86
epel Extra Packages for Enterprise Linux 6 - x86_64 12,355
extras CentOS-6 - Extras 43+21
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 1,757+1
updates CentOS-6 - Updates 959
repolist: 21,724
EPEL 的软件包通常不会与企业版 Linux 官方源中的软件包发生冲突,或者互相替换文件。
手动下载地址:http://dl.fedoraproject.org/pub/epel/
安装方法
1.yum 安装
yum install epel-release -y
CentOS 用户可以直接通过 yum安装并启用 EPEL 源。CentOS Extras 默认包含该包。CentOS-6.8通过yum安装的是最新版本。
2.rpm包安装
yum install yum-priorities
rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
以上URL请按实际情况修改
导入key:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
编辑优先级,在[epel]最后添加一条属性 priority=11
vi /etc/yum.repos.d/epel.repo
重建缓存:
yum makecache
[root@localhost ~]# yum repolist
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.163.com
* remi-safe: mirror.innosol.asia
* updates: mirrors.163.com
108 packages excluded due to repository priority protections
repo id repo name status
base CentOS-6 - Base 6,610+86
epel Extra Packages for Enterprise Linux 6 - x86_64 12,355
extras CentOS-6 - Extras 43+21
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 1,757+1
updates CentOS-6 - Updates 959
repolist: 21,724