第一种方法:
yum源来自chinalinuxpub.com,用的是centos包,
下载地址: 安装:tar zxvf yum.tgzcd yumrpm -ivh *.rpmrm -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 Updatesbaseurl=gpgcheck=1gpgkey=vi /etc/yum.repos.d/as4-base.repo
加入:#released base[base]name=Red Hat Enterprise AS release 4 Updatesbaseurl=gpgcheck=1gpgkey=然后就可以正常使用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.rpm2.修改或建立/etc/yum.repos.d/CentOS-Base.repo为如下内容:
[base]name=CentOS-$releasever – Basebaseurl=$basearch/gpgcheck=1#released updates
[update]name=CentOS-$releasever – Updatesbaseurl=$basearch/gpgcheck=1#packages used/produced in the build but not released
[addons]name=CentOS-$releasever – Addonsbaseurl=$basearch/gpgcheck=1#additional packages that may be useful
[extras]name=CentOS-$releasever – Extrasbaseurl=$basearch/gpgcheck=13.修改或建立/etc/yum.repos.d/dag.repo为如下内容:
[dag]name=Dag RPM Repository for RHEL4baseurl=$basearch/dag/enabled=1gpgcheck=1gpgkey=4.运行update:
yum update5.升级:
yum upgrade6.安装其它软件,例如:
yum install mplayer