Yum-y install oracle-rdbms-server-11gR2-preinstall

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.