标签: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源
原文地址:http://adelazhu.blog.51cto.com/9455045/1684805