View the current system version number
[Email protected] ~]# less/etc/redhat-release
Check if the system has installed a package that already has Redhat's own Yum series package
[Email protected] ~]# Rpm-qa | grep Yum
Yum-metadata-parser-1.0-8.fc6
Yum-3.0.1-5.el5
Yum-updatesd-3.0.1-5.el5
Yum-rhn-plugin-0.4.3-1.el5
If present, delete all
[Email protected] ~]# rpm-e--nodeps yum-metadata-parser-1.0-8.fc6 yum-3.0.1-5.el5 yum-updatesd-3.0.1-5.el5 Yum-rhn-plugin-0.4.3-1.el5
Build a CentOS-specific catalog, then download and install the Yum series package for the CentOS system
[Email protected] ~]# mkdir webuser
[Email protected] ~]# CD WebUser
[Email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
[Email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/ yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
[Email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
[Email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
[Email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
[Email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5
Installing the CentOS Upgrade Kit
[Email protected] webuser]# RPM-UVH--nodeps *.rpm
Preparing ... ########################################### [100%]
1:YUM-UPDATESD ########################################### [20%]
2:python-iniparse ########################################### [40%]
3:yum ########################################### [60%]
4:yum-fastestmirror ########################################### [80%]
5:yum-metadata-parser ########################################### [100%]
Import CentOS Upgrade Component authorization
[Email protected] webuser]# Rpm-import rpm-gpg-key-centos-5
Create and edit a Yum upgrade source configuration file
[Email protected] webuser]# mkdir-p/etc/yum.repos.d/
[Email protected] webuser]# Vi/etc/yum.repos.d/centos-base.repo
Install the graphical upgrade software
[email protected] webuser]# Yum install Yumex
This article from "Dream Girl" blog, declined reprint!
RedHat EL5 CentOS Update