Yum-y install oracle-rdbms-server-11gR2-preinstall this method oel6.4 experiment through
#!/etc/bash
#1. Load the DVD installation disk. Note that the drive path can be df-lh and/dev/sr0 is displayed in my VM.
Mkdir-p/media/diskmount/dev/sr0/media/disk # mount-t iso9660-o loop/tmp/image. iso/media/disk # can be added to/etc/rc. local
#2. Modify
/Usr/lib/python2.6/site-packages/yum/yumRepo. py # remote = url + '/' + relative: remote = "file: /// media/disk/Server/"+ '/' + relativecd/usr/lib/python2.6/site-packages/yum/sed-I's/remote. * relative $/remote \ = \ "file: \/media \/disk \/Server \/" \ + \ relative/G' yumRepo. py
#3. Modify
/etc/yum.repos.d/public-yum-ol6.repocd /etc/yum.repos.d/sed -i 's/baseurl.*$/baseurl=file:\/\/\/media\/disk\/Server\//g' public-yum-ol6.reposed -i 's/enabled.*$/enabled=1/g' public-yum-ol6.reposed -i 's/gpgcheck.*$/gpgcheck=0/g' public-yum-ol6.repocat /etc/yum.repos.d/public-yum-ol6.repo
#4. Patch
yum -y install oracle-rdbms-server-11gR2-preinstall
# Error: failure: repodata/primary.xml.gz # Use the command
#yum clean all#yum makecache#yum update
# Solution