EPEL(Extra Packages for Enterprise Linux)的介绍与安装

一、EPEL简介

1、介绍

EPEL,即Extra Packages for Enterprise Linux的简称,由 Fedora 社区强烈打造的免费开源发行软件包版本库,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。包括但不限于Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL)。

装上了 EPEL之后,就相当于添加了一个第三方源,会自动配置yum的软件仓库。

2、场景

CentOS中yum安装软件时报错:No package XXX available

此时通过安装EPEL即可解决。

二、EPEL安装

安装方式有以下几种:

(1) 在已配置好yum源情况下使用如下命令安装:

yum install epel-release -y
yum clean all && yum makecache

(2) 下载RPM包后安装:

wget https://mirrors.aliyun.com/epel/7Server/x86_64/Packages/e/epel-release-7-12.noarch.rpm
rpm -ivh epel-release-7-12.noarch.rpm
yum clean all && yum makecache

或者:

rpm -ivh https://mirrors.aliyun.com/epel/7Server/x86_64/Packages/e/epel-release-7-12.noarch.rpm
yum clean all && yum makecache

安装EPEL后,会生成如下文件:

/etc/yum.repos.d/epel.repo

 

三、可下载EPEL的地址

以下为CentOS7的地址,对于CentOS6等其他可通过以下地址寻找到。

1、国内地址

(1)阿里云: https://mirrors.aliyun.com/epel/7Server/x86_64/Packages/e/

(2)搜狐:http://mirrors.sohu.com/fedora-epel/

(3)中科大:http://mirrors.ustc.edu.cn/epel/7/x86_64/

(4)清华大学:https://mirrors.tuna.tsinghua.edu.cn/epel/

2、国外地址:

http://www.rpmfind.net/linux/rpm2html/search.php?query=epel-release

https://fedoraproject.org/wiki/EPEL

 

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值