Upgrade redhat as5 to centos 5

Source: Internet
Author: User

1. Check whether the Redhat yum series package exists in the installed package.
# Su root
# Rpm-qa | grep yum

2. If yes, delete them all one by one.
# Rpm-e -- nodeps component package name

3. Install the Centos upgrade package
# Su root
# Rpm-Uvh -- nodeps *. rpm
Wget http://mirrors.163.com/centos/5.5/ OS /i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5.5/ OS /i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5.5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
Wget http://mirrors.163.com/centos/5.5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm

4. Create and edit the yum upgrade source configuration file
# Su root
# Mkdir-p/etc/yum. repos. d/
# Vi/etc/yum. repos. d/CentOS-Base.repo

[base]name=CentOS-$releasever - Basebaseurl=http://mirrors.163.com/centos/5.5/os/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5#released updates[update]name=CentOS-$releasever - Updatesbaseurl=http://mirrors.163.com/centos/5.5/updates/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5#packages used/produced in the build but not released[addons]name=CentOS-$releasever - Addonsbaseurl=http://mirrors.163.com/centos/5.5/addons/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5#additional packages that may be useful[extras]name=CentOS-$releasever - Extrasbaseurl=http://mirrors.163.com/centos/5.5/extras/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusbaseurl=http://mirrors.163.com/centos/5.5/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5#contrib - packages by Centos Users[contrib]name=CentOS-$releasever - Contribbaseurl=http://mirrors.163.com/centos/5.5/contrib/$basearch/gpgcheck=1enabled=0gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5

 

5. yum update

 

6. Install the fedora package

Installing Git on CentOS is very convenient. you can install EPEL. This is a project created by the Fedora community to provide high-quality software for RHEL and its derivative releases. There are rich software in it, by default, no git .... If my CentOS version is 5.5, run the following command to install the Library:

Sudo rpm-Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.