OEL配置本地Yum并简化安装oracle所需RPM包

挂载光盘

df

mount /dev/cdrom /mnt/cdrom

or

mount -o loop /mnt/raid/oracle linux 6.4.iso /mnt/cdrom


[root@vmac6 ~]# cd /etc/yum.repos.d


[root@vmac6 yum.repos.d]# mv public-yum-ol6.repo public-yum-ol6.repo.bak


[root@vmac6 yum.repos.d]# touch public-yum-ol6.repo


[root@vmac6 yum.repos.d]# vi public-yum-ol6.repo            

[base]

name=iso

baseurl=file:///mnt/cdrom

gpgcheck=1

enabled=1

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-oracle


对于依赖包的简化安装:

1.对于6以前的版本

yum install oracle-validated

2.对于6以后的版本,6.3的光盘中才提供,6.1和6.2需要从网上装。

yum install oracle-rdbms-server-11gR2-preinstall-1.0-6.el6

http://www.askmaclean.com/archives/oracle-rdbms-server-11gr2-preinstall-rpm-for-oracle-linux-6.html


你可能感兴趣的:(oracle,linux,File)