redhat 6.4 linux 添加本地yum源

#mkdir /iso

#mount -t ext4 -o remount,rw /dev/cdrom /iso    注意逗号与空格

#vim /etc/yum.repos.d/dvd.repo

下面编辑文件内容

[dvd]

name=dvd

baseurl=file:///iso

gpgcheck=0

enabled=1

然后:wq保存

#yum clean all

ok have successed

posted @ 2019-11-25 11:24  知来者之可追谢谢孟道  阅读(130)  评论(0)    收藏  举报