CentOS6.5下添加epel源

简介:

0.安装yum优先级插件


1
yum  install  yum-priorities -y

1.epel简介: https://fedoraproject.org/wiki/EPEL/zh-cn


1
2
rpm -Uvh 
  rpm -Uvh http: //rpms .famillecollet.com /enterprise/remi-release-6 .rpm

以上URL请按实际情况修改

2.查看是否安装成功


1
rpm -q epel-release

 3.导入key:


1
rpm -- import  /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

4.修改/etc/yum.repos.d/epel.repo文件

在[epel]最后添加一条属性 priority=11


1
vi  /etc/yum .repos.d /epel .repo

意思是yum先去官方源查,官方没有再去epel的源找

5.重建缓存


1
yum makecache


原文链接:http://www.centoscn.com/CentOS/config/2014/0920/3793.html



      本文转自独弹古调  51CTO博客,原文链接:http://blog.51cto.com/hunkz/1704236,如需转载请自行联系原作者





相关文章
|
8天前
|
Linux
CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
|
10月前
|
缓存 Linux
Linux系统之Centos安装epel源
Linux系统之Centos安装epel源
847 0
|
11月前
|
Linux
Centos7下载网络yum源及epel源
Centos7下载网络yum源及epel源
315 0
|
12月前
|
缓存 Linux
Centos7配置国内yum源和epel源
Centos7配置国内yum源和epel源
4555 2
|
缓存 Linux
CentOS7系统配置国内yum源和epel源
1.首先进入/etc/yum.repos.d/目录下,新建一个repo_bak目录,用于保存系统中原来的repo文件 [root@bogon ~]# cd /etc/yum.repos.d/ [root@bogon yum.
6170 0
|
Linux
CentOS7配置epel镜像并安装更新
CentOS7配置epel镜像并安装更新
603 0
CentOS7配置epel镜像并安装更新
|
Linux
在CentOS/RHEL 7.X安装 EPEL repo 的方法
在CentOS/RHEL 7.X安装 EPEL repo 的方法 一 背景 RHEL以及他的衍生发行版如CentOS、Scientific Linux为了稳定,官方的rpm repository提供的rpm包往往是很滞后的,而EPEL恰恰可以解决这两方面的问题。
2538 0

热门文章

最新文章