变更RHEL(Red Hat Enterprise Linux 5.8)更新源使之自动更新


HP 4411s Install Red Hat Enterprise Linux 5.8)

pick up from http://blog.chinaunix.net/uid-423637-id-3387338.html


cd /etc/yum.repos.d/

cp rhel-debuginfo.repo rhel-debuginfo.repo.bk

gedit rhel-debuginfo.repo

        [base]
        name=Red Hat Enterprise Linux 5.8 -Base
        baseurl=http://mirrors.163.com/centos/5/os/$basearch/
        gpgcheck=1

        [update]
        name=Red Hat Enterprise Linux 5.8 -Updates
        baseurl=http://mirrors.163.com/centos/5/updates/$basearch/
        gpgcheck=1

        [extras]
        name=Red Hat Enterprise Linux 5.8 -Extras
        baseurl=http://mirrors.163.com/centos/5/extras/$basearch/
        gpgcheck=1

        [addons]
        name=Red Hat Enterprise Linux 5.8 -Addons
        baseurl=http://mirrors.163.com/centos/5/addons/$basearch/
        gpgcheck=1

cd /etc/pki/rpm-gpg

wget http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5

rpm -import /etc/pki/rpm-gpg/RPM-GPG-KEY*


郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。