CentOS7安裝epel的方式

 

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

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

方法一:yum命令安裝bash

1 yum install epel-release -y

 

方法二:手動安裝架構

 

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

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

若是報衝突,能夠把衝突的包刪除flex

1 yum remove epel-release

或者:spa

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

 

查看源:
1 ll /etc/yum.repos.d/

兩個epel的repo文件:code

1 epel.repo
2 
3 epel-testing.repo

接下來就更新源:orm

1 yum clean all && yum makecache

更新成功以後就可使用EPEL安裝應用了。blog



安裝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 ~]#

 

安裝完epel,clang庫搜索結果:

1 [root@localhost yum.repos.d]# yum list |grep clang 
2 clang.x86_64                            3.4.2-9.el7                    epel     
3 clang-analyzer.noarch                   3.4.2-9.el7                    epel     
4 clang-devel.x86_64                      3.4.2-9.el7                    epel     
5 csmock-plugin-clang.noarch              2.3.0-1.el7                    epel     
6 [root@localhost yum.repos.d]# 
7 [root@localhost yum.repos.d]# 
8 [root@localhost yum.repos.d]# 
9 [root@localhost yum.repos.d]# 

 

 

 

 

 

安裝CentOS SCLo RH存儲庫:

1 yum install centos-release-scl-rh

 

安裝CentOS SCLo RH存儲庫後,clang安裝源搜索結果:

 
 1 [root@localhost yum.repos.d]# yum list |grep clang             
 2 clang.x86_64                               3.4.2-9.el7            epel          
 3 clang-analyzer.noarch                      3.4.2-9.el7            epel          
 4 clang-devel.x86_64                         3.4.2-9.el7            epel          
 5 csmock-plugin-clang.noarch                 2.3.0-1.el7            epel          
 6 llvm-toolset-7-clang.x86_64                5.0.1-4.el7            centos-sclo-rh
 7 llvm-toolset-7-clang-analyzer.noarch       5.0.1-4.el7            centos-sclo-rh
 8 llvm-toolset-7-clang-devel.x86_64          5.0.1-4.el7            centos-sclo-rh
 9 llvm-toolset-7-clang-libs.x86_64           5.0.1-4.el7            centos-sclo-rh
10 llvm-toolset-7-clang-tools-extra.x86_64    5.0.1-4.el7            centos-sclo-rh
11 llvm-toolset-7-git-clang-format.x86_64     5.0.1-4.el7            centos-sclo-rh
12 llvm-toolset-7.0-clang.x86_64              7.0.1-1.el7            centos-sclo-rh
13 llvm-toolset-7.0-clang-analyzer.noarch     7.0.1-1.el7            centos-sclo-rh
14 llvm-toolset-7.0-clang-devel.x86_64        7.0.1-1.el7            centos-sclo-rh
15 llvm-toolset-7.0-clang-libs.x86_64         7.0.1-1.el7            centos-sclo-rh
16 llvm-toolset-7.0-clang-tools-extra.x86_64  7.0.1-1.el7            centos-sclo-rh
17 llvm-toolset-7.0-git-clang-format.x86_64   7.0.1-1.el7            centos-sclo-rh
18 [root@localhost yum.repos.d]# 
相關文章
相關標籤/搜索