redhat 5 yum本地源搭建
# cp -rv /media/RHEL_5.8\ x86_64\ DVD/Server/* /home/yum/ (redhat 5.8)
# vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/yum
enabled=1 (默认为0)
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
:wq
# yum update
本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/1608924如需转载请自行联系原作者
yangzhimingg