您现在的位置: 天下网吧 >> 网吧焦点 >> 网吧技术 >> Linux专版 >> 正文

实用百分百 RHEL4通过YUM实现自动升级

[作者:佚名 来源:赛迪网 时间:2008-4-8 添加到QQ收藏QQ书签 添加到百度搜藏搜藏]

  第一种方法:

  yum源来自chinalinuxpub.com,用的是centos包,

  下载地址: http://www.chinalinuxpub.com/yum.tgz

  安装:

  tar zxvf yum.tgz

  cd yum

  rpm -ivh *.rpm

  

  rm -rf /etc/yum.repos.d/CentOS-Base.repo

  vi /etc/yum.repos.d/as4-update.repo

  加入:

  #released updates

  [update]

  name=Red Hat Enterprise AS release 4 Updates

  baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/

  gpgcheck=1

  gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

  

  vi /etc/yum.repos.d/as4-base.repo

  加入:

  #released base

  [base]

  name=Red Hat Enterprise AS release 4 Updates

  baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i***/RedHat/

  gpgcheck=1

  gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

  

  然后就可以正常使用yum了.

  

  第二种方法:

  

  利用CentOS 的yum库升级RHEL AS4

  1.下载并安装yum-2.4.0-1.centos4.noarch.rpm文件,下载地址为:

  ftp://ftp.pbone.net/mirror/ftp.centos.org/4.2/os/alpha/CentOS/RPMS/yum-2.4.0-1.centos4.noarch.rpm

  

  2.修改或建立/etc/yum.repos.d/CentOS-Base.repo为如下内容:

  [base]

  name=CentOS-$releasEVEr - Base

  baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/os/$basearch/

  gpgcheck=1

  

  #released updates

  [update]

  name=CentOS-$releasEVEr - Updates

  baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/updates/$basearch/

  gpgcheck=1

  

  #packages used/produced in the build but not released

  [addons]

  name=CentOS-$releasEVEr - Addons

  baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/addons/$basearch/

  gpgcheck=1

  

  #additional packages that may be useful

  [extras]

  name=CentOS-$releasEVEr - Extras

  baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/extras/$basearch/

  gpgcheck=1

  

  3.修改或建立/etc/yum.repos.d/dag.repo为如下内容:

  [dag]

  name=Dag RPM Repository for RHEL4

  baseurl=http://ftp.riken.jp/Linux/dag/redhat/el4/en/$basearch/dag/

  enabled=1

  gpgcheck=1

  gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

  

  4.运行update:

  yum update

  

  5.升级:

  yum upgrade

  

  6.安装其它软件,例如:

  yum install mplayer

我来说两句
数据载入中,请稍后……
·请遵守《互联网电子公告服务管理规定》及中华人民共和国其他各项有关法律法规。
·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任。
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据。
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为。
操作
声明
本文来源地址:0
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系邮箱:support@txwb.com.
天下网吧·网吧天下
关于天下 | 联系方式 | 版权声明 | 免责条款 | 隐私保护 | 申请友情链接 | 更多友情链接 | 网络收藏夹
天下网吧,网吧天下.Copy.Txwb.com 2008-2010