1. 安装EPEL
  2. 官方源直接安装
  3.  
  4. rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  5. 1
  6. rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  7. 国内的往往速度会更快
  8.  
  9. #中科大镜像源 高质量源
  10. rpm -Uvh http://mirrors.ustc.edu.cn/centos/7.0.1406/extras/x86_64/Packages/epel-release-7-5.noarch.rpm
  11.  
  12. #浙大源 也非常不错
  13. rpm -Uvh http://mirrors.zju.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  14.  
  15. #上海交大源,更新比较快
  16. rpm -Uvh http://ftp.sjtu.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  17.  
  18. #还有东北的活雷锋东软的源,最近有些抽风,经常打不开
  19. http://mirrors.neusoft.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  20.  
  21. #sohu镜像源,更新比较慢
  22. rpm -Uvh http://mirrors.sohu.com/fedora-epel/7/x86_64/e/epel-release-7-2.noarch.rpm
  23.  
  24. #中科大镜像源 高质量源
  25. rpm -Uvh http://mirrors.ustc.edu.cn/centos/7.0.1406/extras/x86_64/Packages/epel-release-7-5.noarch.rpm
  26.  
  27. #浙大源 也非常不错
  28. rpm -Uvh http://mirrors.zju.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  29.  
  30. #上海交大源,更新比较快
  31. rpm -Uvh http://ftp.sjtu.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  32.  
  33. #还有东北的活雷锋东软的源,最近有些抽风,经常打不开
  34. http://mirrors.neusoft.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  35.  
  36. #sohu镜像源,更新比较慢
  37. rpm -Uvh http://mirrors.sohu.com/fedora-epel/7/x86_64/e/epel-release-7-2.noarch.rpm
  38. 这是来自官方公布的数据(2015-01-28
  39.  
  40. http://mirrors.fedoraproject.org/publiclist/EPEL/7/x86_64/#CN
  41.  
  42. 配置EPEL
  43. vi /etc/yum.repos.d/epel.repo
  44. [epel]
  45. name=Extra Packages for Enterprise Linux 7 - $basearch
  46. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/$basearch
  47. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
  48. failovermethod=priority
  49. enabled=1
  50. gpgcheck=1
  51. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  52.  
  53. [epel-debuginfo]
  54. name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
  55. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/$basearch/debug
  56. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
  57. failovermethod=priority
  58. enabled=0
  59. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  60. gpgcheck=1
  61.  
  62. [epel-source]
  63. name=Extra Packages for Enterprise Linux 7 - $basearch - Source
  64. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/SRPMS
  65. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
  66. failovermethod=priority
  67. enabled=0
  68. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  69. gpgcheck=1
  70.  
  71. [epel]
  72. name=Extra Packages for Enterprise Linux 7 - $basearch
  73. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/$basearch
  74. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
  75. failovermethod=priority
  76. enabled=1
  77. gpgcheck=1
  78. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  79.  
  80. [epel-debuginfo]
  81. name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
  82. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/$basearch/debug
  83. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
  84. failovermethod=priority
  85. enabled=0
  86. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  87. gpgcheck=1
  88.  
  89. [epel-source]
  90. name=Extra Packages for Enterprise Linux 7 - $basearch - Source
  91. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/SRPMS
  92. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
  93. failovermethod=priority
  94. enabled=0
  95. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  96. gpgcheck=1
  97. vi /etc/yum.repos.d/epel-testing.repo
  98.  
  99. [epel-testing]
  100. name=Extra Packages for Enterprise Linux 7 - Testing - $basearch
  101. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/7/$basearch
  102. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel7&arch=$basearch
  103. failovermethod=priority
  104. enabled=0
  105. gpgcheck=1
  106. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  107.  
  108. [epel-testing-debuginfo]
  109. name=Extra Packages for Enterprise Linux 7 - Testing - $basearch - Debug
  110. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/7/$basearch/debug
  111. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel7&arch=$basearch
  112. failovermethod=priority
  113. enabled=0
  114. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  115. gpgcheck=1
  116.  
  117. [epel-testing-source]
  118. name=Extra Packages for Enterprise Linux 7 - Testing - $basearch - Source
  119. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/7/SRPMS
  120. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel7&arch=$basearch
  121. failovermethod=priority
  122. enabled=0
  123. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  124. gpgcheck=1
  125.  
  126. [epel-testing]
  127. name=Extra Packages for Enterprise Linux 7 - Testing - $basearch
  128. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/7/$basearch
  129. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel7&arch=$basearch
  130. failovermethod=priority
  131. enabled=0
  132. gpgcheck=1
  133. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  134.  
  135. [epel-testing-debuginfo]
  136. name=Extra Packages for Enterprise Linux 7 - Testing - $basearch - Debug
  137. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/7/$basearch/debug
  138. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel7&arch=$basearch
  139. failovermethod=priority
  140. enabled=0
  141. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  142. gpgcheck=1
  143.  
  144. [epel-testing-source]
  145. name=Extra Packages for Enterprise Linux 7 - Testing - $basearch - Source
  146. baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/7/SRPMS
  147. #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel7&arch=$basearch
  148. failovermethod=priority
  149. enabled=0
  150. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  151. gpgcheck=1
  152. 这是已经替换好上海交大源的文件,如果想使用中科大的,请用http://mirrors.ustc.edu.cn/来替换http://ftp.sjtu.edu.cn/fedora/就可。其它以此来推。
  153.  
  154. 检查源是否已添加
  155.  
  156. yum repolist
  157. yum repolist
  158. 运行命令生成缓存
  159.  
  160. yum clean all && yum makecache
  161. yum clean all && yum makecache
  162. 选择速度最快的yum
  163. yum安装插件yum-plugin-fastestmirror
  164. yum install yum-plugin-fastestmirror
  165. yum install yum-plugin-fastestmirror

安装EPEL源的更多相关文章

  1. 如何在CentOS 5/6上安装EPEL 源

    EPEL 是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/CentO ...

  2. 如何在CentOS 5/6上安装EPEL源

    EPEL 是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/CentO ...

  3. 如何在CentOS 6.5上安装EPEL 源

    EPEL 是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/CentO ...

  4. CentOS 5/6上安装EPEL源

    转自:http://www.vckai.com/p/25 EPEL 是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fe ...

  5. CentOS 6.X 安装 EPEL 源

    CentOS 6.X 自带的软件源可选的并不多,有时候要找到一个偏门一些的软件,用命令一搜怎么都没有源,考虑到使用软件源配合 yum 命令安装可以自动安装依赖,所以加一个新的软件源迫在眉睫. 考虑到同 ...

  6. 如何在centos上安装epel源

    一.EPEL是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/Cent ...

  7. Centos 64位安装 EPEL源

    #直接在线安装rpm包 rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # ...

  8. centos安装epel源

    用163的源,但是我发现这个源里面,根本没有libmcrypt libmcrypt-devel这二个包,装php扩展mcrypt时,又要用到这二个包,所以我手动装了libmcrypt包,但是给我的感觉 ...

  9. rhel7下安装EPEL源

    1.rhel7安装aliyun下的epel源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

随机推荐

  1. C#中的线程(二) 线程同步基础

    1.同步要领 下面的表格列展了.NET对协调或同步线程动作的可用的工具:                       简易阻止方法 构成 目的 Sleep 阻止给定的时间周期 Join 等待另一个线程 ...

  2. Nginx:针对IPv4的内核参数优化

    这里提及的参数是和IPv4网络有关的linux内核参数,我们可以将这些内核参数的值追加到linux系统的/etc/sysctl.conf文件中,然后使用如下命令使修改生效: [root@bogon ~ ...

  3. nginx php-fpm安装配置

    nginx本身不能处理PHP,它只是个web服务器,当接收到请求后,如果是php请求,则发给php解释器处理,并把结果返回给客户端. nginx一般是把请求发fastcgi管理进程处理,fascgi管 ...

  4. Win7(32bit)下Qt5.5.0和OpenCV2.4.9环境的搭建

    之前一直基于Windows平台(Win 7 32bit)使用VS2010做OpenCV的开发,现在开始学习在Windows 下使用Qt做OpenCV的开发.本文主要讲述Windows平台下(Win 7 ...

  5. WNDR3700V4恢复原厂固件(使用TFTP刷网件原厂固件)

    WNDR3700v4原厂固件下载地址: http://support.netgear.cn/doucument/More.asp?id=2203 操作方法: 1.将设备断电: 2.按住设备背面的Res ...

  6. spring mvc(1):基础入门

      依赖 pom.xml ( maven ) <properties>  <spring.version>3.0.5.RELEASE</spring.version> ...

  7. 【Mail】JavaMail发送带附件的邮件(二)

    上一篇讲了使用JavaMail发送普通邮件([Mail]JavaMail介绍及发送邮件(一)),本例讲发送复杂的邮件(带有附件的邮件) 生成一封复杂的邮件 新建一个JavaWeb的Maven工程,引入 ...

  8. nginx url 重写

    rewrite ^([^\.]*)/platform/(.+)/(.+)-(.+)\.html$ $1/platform.php?mod=asklist&ym=$2&fl=$3& ...

  9. 原生ajax基础

    /*ajax对象的成员常用属性:responseText:以字符串形式接收服务器端返回的信息responseXML:以Xml Document对象形式接收服务器返回的信息readyState:返回当前 ...

  10. Android Sqlite数据库相关——实现将 Sqlite 数据库复制到SD 卡

    确定 sqlite 数据库所在位置(一般在data/data/com.pagename/databases/ 下,其中 com.pagename为当前项目包名) 确定 sqlite 数据库名称,拼接到 ...