配置yum 和epel源
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了配置yum 和epel源相关的知识,希望对你有一定的参考价值。
打开 http://mirrors.kernel.org/fedora-epel/
Index of /fedora-epel/
../
4/ 11-Apr-2017 15:28 -
4AS/ 11-Apr-2017 15:28 -
4ES/ 11-Apr-2017 15:28 -
4WS/ 11-Apr-2017 15:28 -
5/ 11-Apr-2017 15:31 -
5Client/ 11-Apr-2017 15:31 -
5Server/ 11-Apr-2017 15:31 -
6/ 26-Oct-2017 09:49 -
6Server/ 26-Oct-2017 09:49 -
7/ 26-Oct-2017 00:25 -
7Server/ 26-Oct-2017 00:25 -
testing/ 30-Aug-2014 16:49 -
RPM-GPG-KEY-EPEL 03-Mar-2007 14:11 1698
RPM-GPG-KEY-EPEL-4 03-Mar-2007 14:11 1698
RPM-GPG-KEY-EPEL-5 03-Mar-2007 14:11 1698
RPM-GPG-KEY-EPEL-6 12-May-2010 01:25 1649
RPM-GPG-KEY-EPEL-6Server 12-May-2010 01:25 1649
RPM-GPG-KEY-EPEL-7 20-Jun-2014 18:54 1662
RPM-GPG-KEY-EPEL-7Server 20-Jun-2014 18:54 1662
epel-release-latest-6.noarch.rpm 05-Nov-2012 15:31 14K
epel-release-latest-7.noarch.rpm 02-Oct-2017 17:52 15K
fullfilelist 25-Apr-2018 22:32 7M
fullfilelist.AwiES3LjSB 26-Oct-2017 14:00 13M
fullfilelist.KDUVzc9WPK 26-Oct-2017 13:40 13M
fullfiletimelist-epel 25-Apr-2018 22:32 9M
fullfiletimelist-epel.WaO7KUHvYz 26-Oct-2017 14:06 17M
imagelist-epel 23-Nov-2016 18:20 0
二,选择合适的版本:
例如centos7
1,#rpm -Uvh http://mirrors.kernel.org/fedora-epel/epel-release-latest-7.noarch.rpm
#yum clean all 把之前的yum缓存清理一下
#yum makecache 生成新的缓存
#yum update 更新一下
这里可以执行更新一下,也可以不执行 不影响;
选择
2 安装epel repo源:aliyun
epel(RHEL 7)
wget -O /etc/yum.repos.d/epel.repo/http://mirrors.aliyun.com/repo/epel-7.repo
epel(RHEL 6)
wget -O /etc/yum.repos.d/epel.repo
http://mirrors.aliyun.com/repo/epel-6.repo
epel(RHEL 5)
wget -O /etc/yum.repos.d/epel.repo
http://mirrors.aliyun.com/repo/epel-5.repo
3.清理缓存
yum clean
all
4.重新生成缓存
yum makecache
yum update
以上是关于配置yum 和epel源的主要内容,如果未能解决你的问题,请参考以下文章