CentOS7安裝EPEL的兩種方式


安裝Howto
安裝CentOS SCLo RH存儲庫:
yum install centos-release-scl-rh

epel是社區強烈打造的免費開源發行軟件包版本庫。

EPEL,即Extra Packages for Enterprise Linux的簡稱,是為企業級Linux提供的一組高質量的額外軟件包,包括但不限於Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL)。(關於 : EPEL)

方法一:yum命令安裝

yum install epel-release -y

方法二:手動安裝

針對系統架構選擇相應的類型:http://dl.fedoraproject.org/pub/epel/7/。我們使用的x86_64,就要進入該目錄下尋找相應包,安裝方法如下:

# rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 

如果報沖突,可以把沖突的包刪除

yum remove epel-release 

或者:

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm # rpm -vih epel-release-7-2.noarch.rpm 

更新數據

yum clean all && yum makecache

查看倉庫多了下面一行,有一萬多個包。

<pre class="brush:bash;toolbar:false" style="font-family: Arial, Helvetica, sans-serif; padding: 5px; max-width: 680px !important; background-color: rgb(246, 246, 246); border: 1px dotted rgb(170, 170, 170); white-space: pre-wrap; word-wrap: break-word;">*epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,018</pre> <pre class="brush:bash;toolbar:false" style="font-family: Arial, Helvetica, sans-serif; padding: 5px; max-width: 680px !important; background-color: rgb(246, 246, 246); border: 1px dotted rgb(170, 170, 170); white-space: pre-wrap; word-wrap: break-word;">[root@hddcluster2 ~]# yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.cn99.com * epel: mirror01.idc.hinet.net * extras: mirrors.aliyun.com * updates: mirrors.cn99.com repo id repo name status base/7/x86_64 CentOS-7 - Base 9,363 *epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,018 extras/7/x86_64 CentOS-7 - Extras 435 updates/7/x86_64 CentOS-7 - Updates 418 repolist: 21,234 [root@hddcluster2 ~]# 

本文出自 “禪劍一如” 博客,請務必保留此出處http://yanconggod.blog.51cto.com/1351649/1890318



作者:Joncc
鏈接:https://www.jianshu.com/p/1882cd3b2295
來源:簡書
著作權歸作者所有。商業轉載請聯系作者獲得授權,非商業轉載請注明出處。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM