使用本地yum源

 

[root@xaiofan ~]# mount /dev/sr0 /mnt/

[root@xaiofan ~]# cat /etc/yum.repos.d/local.repo
[loacl]
name=CentOS6.5
baseurl=file:///mnt
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

posted @ 2016-10-07 12:07  xuanhui  阅读(221)  评论(0)    收藏  举报