将光盘镜像CentOS-5.3-i386-bin-DVD.iso设置成为yum源

http://unixboy.javaeye.com/blog/478993

#mkdir /centos5.3.dvd (随便起个文件夹名)
#mount-o loop CentOS-5.3-i386-bin-DVD.iso/centos5.3.dvd
#cd /etc/yum.repos.d/

#mv CentOS-Base.repo CentOS-Base.repo.bak (改名)
#vi /etc/yum.repos.d/CentOS-Media.repo
(参考里面的[c5-media]的写法,加入下面四行)
[centos5.3.dvd]
name=centos5.3.dvd
baseurl=file:///centos5.3.dvd
gpgcheck=0

保存退出。

你可能感兴趣的:(centos,Blog)