[root@gateway yum.repos.d]# vi CentOS-Media.repo
\
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c4-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c4-media [command]
#[c4-media]
#name=CentOS-$releasever - Media
#baseurl=file:///media/cdrom/
#
#gpgcheck=1
#enabled=0
#gpgkey=file:///usr/share/doc/centos-release-4/RPM-GPG-KEY-centos4
×××以下为更改部分×××
[c4-media]
name=Myyum
baseurl=file:///media/
gpgcheck=0
enabled=1
------------------------------------------------
然后将光盘ISO文件挂载到medis目录下:
mount -o loop CentOS-4.8-i386-binDVD.iso /media/
阅读(639) | 评论(0) | 转发(0) |