mount /dev/cdrom /mnt 修改
mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/wlcsp.repo
修改wlcsp.repo的配置入下:
[root@primary yum.repos.d]# more wlcsp.repo
#[rhel-debuginfo]
[rhel-wlcsp]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug #baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
baseurl=file:///mnt/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@primary /]# yum install httpd
[root@primary /]# yum remove httpd
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-1060940/ ,如需转载,请注明出处,否则将追究法律责任。