How to install centos 5 yum in rhel5

Source: Internet
Author: User
For those who often use centos, the yum that comes with it is very useful. Can their fellow brother rhel5 also install yum? I found a piece of information on the Internet and found that this is completely achievable. Let's take a look at his implementation method:
Uninstall the yum package of yum in RHEL first.
Query the previously installed Yum package:
Rpm-Qa | grep yum
Delete the yum package one by one according to the query above. Some of the packages are dependent here, So add -- nodeps to delete them, for example:
Rpm-e -- nodeps yum-3.0.5-1.el5

And so on.

### 1. Create the yum installation package directory and enter the directory:
Mkdir/tmp/Yum-packages
CD/tmp/Yum-packages

### II. Download all RPM packages required by Yum:
Wget http://mirror.centos.org/centos-5/5/ OS /i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm
Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
Wget http://mirror.centos.org/centos-5/5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

### 3. Install the python environment first:
Rpm-IVH python-iniparse-0.2.3-4.el5.noarch.rpm

### 4. Install all Yum packages:
Rpm-IVH yum-3.2.22-39.el5.centos.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

### 5. Download the configuration file
Wget http://sudone.com/download/CentOS-Base.repo-O/etc/yum. Repos. d/CentOS-Base.repo
(Here we will explain that it is only in/etc/yum. repos. d/folder with the suffix. the repo file can be a newly added Yum source file in the yum source format, so you can place the yum source file you have found here, with the yum

It is quite easy to install and update the software from the source. You can add the yum source file to obtain the. Repo file written by people on the Internet in the following way: wget http://centos.ustc.edu.cn/centos-base.repo.5.

### 6. Now you can experience yum

Yum update

Note: The connection may fail if the connection lasts for a long time. Generally, the version is upgraded. You can access the directory at the upper level and find the latest version with the same name.

You can also refer to the following website:

Http://blog.csdn.net/hz_chenwenbiaotmb/article/details/6000648

Http://hi.baidu.com/suantop/blog/item/514c52fef7cbbb345d6008c9.html
Http://xiaoyuningshuang.blog.163.com/blog/static/11980783200851633623839/
Http://5551543.blog.hexun.com/31625644_d.html
Http://hi.baidu.com/hzw83/blog/item/0f4f9a4f80de4fc6d0c86a71.html
Http:// OS .51cto.com/art/201002/183518.htm
Http:// OS .51cto.com/art/201002/182805.htm

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.