If RHEL is not registered, yum cannot be used.

Source: Internet
Author: User
Because LinuxRHEL5 is not registered, yum cannot be used, you can use the yum of CentOS to solve this problem. First, uninstall the yum of the system. 1. Delete the yumrpm-qa | grepyum | xargsrpm-e-nodeps from the RedHat5. 2. install or download from the official CentOS 5.4 CD. download wgethttp: // mirrors.163.com/centos/5.4/ OS /x86_64/C

In Linux RHEL 5, yum cannot be used because it is not registered. You can use CentOS yum to solve this problem.
First, uninstall the system's yum

1. Delete the yum that comes with RedHat 5

Rpm-qa | grep yum | xargs rpm-e-nodeps

Ii. install or download from the CentOS 5.4 CD

Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5.4/ OS /x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm

Rpm-ivh m2crypto-0.16-6.el5.6.x86_64.rpm
Rpm-ivh python -*
Rpm-ivh rpm-python
Rpm-ivh yum -*

Install

3. Download configurations

Cd/etc/yum. repos. d/

Wget http://www.linuxidc.com/system/systemfiles/2010/8/CentOS-Base.repo

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.