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. 1. Download the four YUM files under CentOS5.6.
Today, we are working on RedHat 5.6 Enterprise Edition. You are charged.
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