CentOS6.5下添加epel源

0.安装yum优先级插件

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

以上URL请按实际情况修改

2.查看是否安装成功

3.导入key:

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

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

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

5.重建缓存

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

今天在测试环境使用yum安装,遇到一个问题:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉。即可。

Leave a Reply

Your email address will not be published. Required fields are marked *