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

YUM源 光盘和阿里镜像站

时间:2015-08-15 12:10:16      阅读:512      评论:0      收藏:0      [点我收藏+]

标签:yum源

连接光盘,挂在光盘

# mount /dev/cdrom /media/

编辑 /etc/yum.repos.d/iso.repo

[ISO]
name=ISO
baseurl=file:///media
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[EPEL]
name=EPEL
baseurl=http://mirrors.aliyun.com/epel/6/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/epel/RPM-GPG-KEY-EPEL-6

repolist

# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.btte.net
EPEL                                                                                 | 4.4 kB     00:00
ISO                                                                                  | 4.0 kB     00:00 ...
repo id                                      repo name                                                status
EPEL                                         EPEL                                                     11,753
ISO                                          ISO                                                       6,518
base                                         CentOS-6 - Base                                           6,575
extras                                       CentOS-6 - Extras                                            34
updates                                      CentOS-6 - Updates                                          219
repolist: 25,099

Done!

本文出自 “Adela” 博客,请务必保留此出处http://adelazhu.blog.51cto.com/9455045/1684805

YUM源 光盘和阿里镜像站

标签:yum源

原文地址:http://adelazhu.blog.51cto.com/9455045/1684805

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