1.
mount /dev/sr0 /mnt/cdrom/
rpm -ivh yum-metadata-parser-x.x.x.rpm
rpm -ivh yum-rhn-plugin-x.x.x.rpm
rpm -ivh yum-updatesd-x.x.x.rpm
rpm -ivh createrepo-x.x.x.rpm
3. 添加cdrom repo
vi /etc/yum.repos.d/cdrom.repo
[CDROM]
name=ORACLE6.4 cdrom
baseurl=file:///mnt/cdrom/
enable=1
gpgcheck=0
4. 测试查看cdrom的软件包列表
yum --disablerepo=* --enablerepo=CDROM list
mount /dev/sr0 /mnt/cdrom/
2. 确认是否安装以下软件包
rpm -qa |grep yum
rpm -qa |grep createrepo
如未安装则手动从cdrom install
rpm -ivh yum-x.x.x.rpmrpm -ivh yum-metadata-parser-x.x.x.rpm
rpm -ivh yum-rhn-plugin-x.x.x.rpm
rpm -ivh yum-updatesd-x.x.x.rpm
rpm -ivh createrepo-x.x.x.rpm
3. 添加cdrom repo
vi /etc/yum.repos.d/cdrom.repo
[CDROM]
name=ORACLE6.4 cdrom
baseurl=file:///mnt/cdrom/
enable=1
gpgcheck=0
4. 测试查看cdrom的软件包列表
yum --disablerepo=* --enablerepo=CDROM list