【准备工作】将RHEL or CentOS or OracleLinux作为yum源
【具体步骤如下】
#mkdir/media/cdrom
#mount/dev/cdrom /media/cdrom
#rm-rf /etc/yum.repos.d/*.repo
#vi/etc/yum.repos.d/OL6.5iso.repo
[OL6.5iso]
name=OL6.5iso
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0
#yum clean all
#yum list oracle-rdbms-server-11gR2-preinstall.x86_64
##卸载yum 源
#umount/media/cdrom
#eject/dev/cdrom
时间: 2024-10-05 18:13:54