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
#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