1、mount /dev/cdrom /mnt
2、修改/etc/yum.repos.d/rhel-debuginfo.repo
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/Cluster ##注意此目录应该是repodata的上级目录,否则报错(找不到repomd.xml)
enabled=1
gpgcheck=1
gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release
阅读(1157) | 评论(0) | 转发(0) |