redhat linux版本升级,redhat linux 通过yum自动升级

第一种方法:

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了.

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

[base]

name=CentOS-$releasever - Base

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

gpgcheck=1

#released updates

[update]

name=CentOS-$releasever - Updates

baseurl=http://ftp.riken.jp/Linux/caos/centos/4.5/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.5/addons/$basearch/

gpgcheck=1

#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

baseurl=http://ftp.riken.jp/Linux/caos/centos/4.5/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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值