Uninstall redhat6.5 yum, install CENTOS6 yum, configure the third room Yum source

Source: Internet
Author: User

**redhat Yum Online update is chargeable, if not registered, can not use, if you want to use, you need to uninstall Redhat Yum, restart the installation of other Yum sources, and then configure additional sources. * * This article includes configuring local sources and third-party sources. Third-party sources include: NetEase, Epel,repoforge, rpmfusion The following is the detailed process:

1. Delete Redhat's original yum rpm-aq|grep yum|xargs rpm-e--nodeps

< Span class= "token p" > Span class= "token lf" > 2. Download Yum setup file Note that If you cannot find the file when you download it, log in to: http://mirrors.163.com/centos/6/os/x86_64/to find the appropriate file. Then download the following 4 RPM packages (the version may be different).

< Span class= "token p" >< Span class= "token lf" > wget http:// mirrors.163.com/centos/6/os/x86_64/packages/yum-3.2.27-14.el6.centos.noarch.rpm

< Span class= "token p" >< Span class= "token lf" > Span class= "token p" >wget http://mirrors.163.com/centos/6/os/x86_64/packages/ yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm

< Span class= "token p" >< Span class= "token lf" > < Span class= "token p" > wget http://mirrors.163.com/centos/6/os/x86_64/packages/ yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

< Span class= "token p" >< Span class= "token lf" > < Span class= "token p" > < Span class= "token lf" > 3. Install yum

< Span class= "token p" >< Span class= "token lf" > < Span class= "token lf" > Span class= "token lf" > RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm

< Span class= "token lf" >< Span class= "token lf" > < Span class= "token lf" > RPM-IVH yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm

< Span class= "token lf" > < Span class= "token lf" > < Span class= "token lf" > &NBSP;RPM-IVH yum-3.2.27-14.el6.centos.noarch.rpm um-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm Note that the last two packages must be installed at the same time, otherwise they will depend on

4. Download the third party yum Source Here is the NetEase Http://mirrors.163.com/.help/CentOS6-Base-163.repo.

< Span class= "token p" > < Span class= "token lf" > < Span class= "token lf" >     can also have Sohu, look for themselves. Just love the downloaded file and put it under/etc/yum.repos.d/. If you do not use other repo files, it is best to remove the other repo files.

 

< Span class= "token url" > < Span class= "token pre" > < Span class= "token url" > 5. Precautions (1) If your baseurl cannot access it will appear

< Span class= "token lf" > http://mirrors.163.com/centos/%24releasever/os/x86_64/repodata/repomd.xml: [Errno 14] Pycurl ERROR-"The requested URL returned error:404 not Found" (2) machine to be networked, ping www.baidu.com try, (3) Execute order yum clean all (4) Yum install gcc-c++. Installation instructions installed successfully.

Uninstall redhat6.5 yum, install CENTOS6 yum, configure the third room 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.