码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2015-03-29 14:53:50      阅读:339      评论:0      收藏:0      [点我收藏+]

标签:


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*


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

标签:

原文地址:http://www.cnblogs.com/rgqancy/p/4375585.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!