RedHat EL5 CentOS Update

Source: Internet
Author: User
Tags gpg

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

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.