Today, we are working on redhat5.6 Enterprise Edition.
The solution is to use the centos Yum update source to implement the rhel5 Yum function"
I,
Download the four Yum files under centos5.6: http://centos.ustc.edu.cn/centos/
Run
Rpm-IVH -- nodeps yum-updatesd-0.9-2.el5.noarch.rpm
Rpm-IVH -- nodeps yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
Rpm-IVH -- nodeps yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Rpm-IVH yum-3.2.22-33.el5.centos.noarch.rpm
II,
Go to/etc/yum. erpos. d/to back up the original RedHat source list configuration file.
CD/etc/yum. Repos. d/
MV rhel-debuginfo.repo rhel-debuginfo.repo.bak (this is actually not backed up)
Download CentOS-Base.repo,: http://mirrors.ustc.edu.cn/centos/CentOS-Base.5.mirrors.repo
III,
Open the CentOS-Base.repo with VI.
Replace all $ releasever in the CentOS-Base.repo with 5.6
Everything is okay. Of course, I still need to install orcale.
Attachment; CentOS-Base.repo
######################################## #########################
# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for centos.
# The mirror system uses the connecting IP address of the client and
# Update Status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for centos updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#
[Base]
CentOS-5.6-Base
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Released updates
[Updates]
CentOS-5.6-Updates
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Packages used/produced in the build but not released
[Addons]
CentOS-5.6-Addons
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/addons/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that may be useful
[Extras]
Name = CentOS-5.6-extras
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
# Additional packages that extend functionality of existing packages
[Centosplus]
CentOS-5.6-plus
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5