分类: LINUX
2007-05-09 16:22:11
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=
gpgcheck=1
gpgkey=
vi /etc/yum.repos.d/as4-base.repo
加入:
#released base
[base]
name=Red Hat Enterprise AS release 4 Updates
baseurl=
gpgcheck=1
gpgkey=
至此yum便可以用了。
法二
第二种方法:利用CentOS 的yum库升级RHEL AS4
1.下载并安装yum-2.4.0-1.centos4.noarch.rpm文件,下载地址为:
2.修改或建立/etc/yum.repos.d/CentOS-Base.repo为如下内容:
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=
gpgcheck=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=
gpgcheck=1
3.修改或建立/etc/yum.repos.d/dag.repo为如下内容:
[dag]
name=Dag RPM Repository for RHEL4
baseurl=
enabled=1
gpgcheck=1
gpgkey=
参阅文章:
http://jimmy-shine.javaeye.com/blog/77411
yum的使用参阅linuxsir