Redhat system changed to Yum Source

Source: Internet
Author: User

Note: Red Hat's Yum service is required for registration, so it is recommended to uninstall and install the CentOS yum.


1. Remove Redhat from:rpm-qa | grep yum | xargs rpm-e--nodeps

2.Install the downloaded installation package
#rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
#rpm-ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm


#rpm-ivh yum -3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror -1.1.30-14.el6.noarch.rpm 

Note: Install the above two need python-urlgrabber -3.9.1-11.el6.noarch.rpm, but installation python-urlgrabber-3.9.1-11.el6.noarch.rpm will be reported abnormal, so need to execute RPM-UVH python-urlgrabber-3.9.1-11.el6.noarch.rpm , and then

#rpm-ivh  yum -3.2.29-40.EL6.CENTOS.NOARCH.RPM&NBSP, yum-plugin-fastestmirror -1.1.30-14.el6.noarch.rpm install these two packages, everything is OK.

3, into the cd/etc/yum.repos.d/, before the backup to the Yum source, download 163 or Ali of the Yum source

wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

1) Vim Centos6-base-163.repo

2) Yum Clean all will error

You need to replace the Centos6-base-163.repo in :%s/$releasever/centos-6.x/g

3) Yum Makecache completed successfully.



Finally, attached to help me solve the problem of a netizen's blog, for everyone to learn the reference, hope also can help more small gang help, thank you. http://fengyuzaitu.blog.51cto.com/5218690/1384796


This article is from "Effort!" Struggle! "Blog, be sure to keep this provenance http://026mm.blog.51cto.com/8783374/1833290

Redhat system changed to Yum Source

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.