码迷,mamicode.com
首页 > 其他好文 > 详细

配置yum 和epel源

时间:2018-11-07 20:09:37      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:href   mirrors   time   aliyun   apr   date   ase   yum   不执行   

打开 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源

标签:href   mirrors   time   aliyun   apr   date   ase   yum   不执行   

原文地址:http://blog.51cto.com/12331508/2313698

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!