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

後記

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