适用RHEL5.4版,首先挂载光驱到磁盘上,红色的文件夹为自己创建的,在配置文件里面也是需要用到该文件夹
[root@study ~]# mount /dev/cdrom /mnt/redhat/
挂载好后按照下面配置文件,一切搞定,开始yum安装软件包吧!
[root@study ~]# vim /etc/yum.repos.d/rhel-debuginfo.repo
#[rhel-debuginfo]
#name=Red Hat Enterprise Linux $releasever - $basearch - Debug
#enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/redhat/Cluster/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/redhat/ClusterStorage
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/redhat/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releasea
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/redhat/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releasea