雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 862|回复: 1

[学习/资料] 【干货】CentOS RHEL 7.X安装 EPEL仓库(repo) 的方法

[复制链接]
发表于 2019-4-22 01:32:28 | 显示全部楼层 |阅读模式
一 背景
RHEL以及他的衍生发行版如CentOS、Scientific Linux为了稳定,官方的rpm repository提供的rpm包往往是很滞后的,而EPEL恰恰可以解决这两方面的问题。EPEL的全称叫Extra Packages for Enterprise Linux 。EPEL是由Fedora 社区打造,为RHEL 及衍生发行版如CentOS、Scientific Linux 等提供高质量软件包的项目。装上了EPEL之后,就相当于添加了一个第三方源。在某些情况下,通过EPEL repo 安装一些软件比其他安装方式方便很多。

二 操作步骤
2.1 执行安装命令
yum -y install epel-release
2.2 查看结果
yum repolist
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ap.stykers.moe
* epel: mirror01.idc.hinet.net
* extras: mirrors.cn99.com
* **s: mirrors.njupt.edu.cn
repo id                                                             repo name                                                                                         status
base/7/x86_64                                                        CentOS-7 - Base                                                                                   10019
*epel/x86_64                                                       Extra Packages for Enterprise Linux 7 - x86_64                                                      12973
extras/7/x86_64                                                     CentOS-7 - Extras                                                                                   371
**s/7/x86_64                                                    CentOS-7 - **s                                                                                 1163
repolist: 24526

我们可以与安装之前对比一下:
yum repolist
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: mirrors.nwsuaf.edu.cn
* extras: mirrors.nwsuaf.edu.cn
* **s: mirrors.nwsuaf.edu.cn
repo id                                                                           repo name                                                                           status
base/7/x86_64                                                                     CentOS-7 - Base                                                                     10019
extras/7/x86_64                                                                   CentOS-7 - Extras                                                                     371
**s/7/x86_64                                                                 CentOS-7 - **s                                                                    1163
repolist: 11553
效果不言而喻。

2.3 其他安装方式
通过rpm 包可以安装,下载地址如下:https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm;
发表于 2019-8-13 14:17:03 | 显示全部楼层
thanks for sharing
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-20 10:17 , Processed in 0.077598 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表