RHEL的epel仓库搭建

前言

epel

EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux。这个软件包会自动配置yum的软件仓库。当然你也可以不安装这个包,自己配置软件仓库也是一样的。
我们用yum安装软件时,经常发现我们的yum源里面没有该软件,需要自己去wget,然后configure,make,make install,太折腾了。所以安装epel包是个很不错的选择。

安装

找到资源地址并安装:

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y

安装结果:

[root@localhost ]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:02:06 ago on Tue 14 Apr 2020 11:48:10 PM CST.
epel-release-latest-8.noarch.rpm                5.3 kB/s |  21 kB     00:04    
Dependencies resolved.
================================================================================
 Package              Arch           Version         Repository            Size
================================================================================
Installing:
 epel-release         noarch         8-7.el8         @commandline          21 k

Transaction Summary
================================================================================
Install  1 Package

Total size: 21 k
Installed size: 30 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : epel-release-8-7.el8.noarch                            1/1 
  Running scriptlet: epel-release-8-7.el8.noarch                            1/1 
  Verifying        : epel-release-8-7.el8.noarch                            1/1 
Installed products updated.

Installed:
  epel-release-8-7.el8.noarch                                                   

Complete!

验证:

[root@localhost yum.repos.d]# dnf repolist epel
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Extra Packages for Enterprise Linux 8 - x86_64  182 kB/s | 6.3 MB     00:35    
Last metadata expiration check: 0:00:12 ago on Tue 14 Apr 2020 11:51:04 PM CST.
repo id          repo name                                                status
*epel            Extra Packages for Enterprise Linux 8 - x86_64           5,274

后记

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章