Environment--Uninstall redhat6.5 yum, install CENTOS6 yum, configure the third room Yum Source _yum

Source: Internet
Author: User
**redhat Yum Online update is charged, if not registered words can not be used, if you want to use, you need to redhat yum Uninstall, restart the installation of other Yum source, and then configure other sources. * * This article includes configuring local sources and third-party sources. Third-party sources include: NetEase, Epel,repoforge, rpmfusion The following is a detailed process:

1. Delete Redhat original yum rpm-aq|grep Yum|xargs rpm-e–nodeps

2. Download Yum installation file Note, if the download can not find the file, log on 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).

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm

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

3. For installation Yum

RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm

RPM-IVH yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm

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 simultaneously. Otherwise they will depend on each other

4. Download the third party yum source here gives NetEase Http://mirrors.163.com/.help/CentOS6-Base-163.repo.
Also can have Sohu, oneself look for. Just love that. The downloaded file is placed under/etc/yum.repos.d/. If you do not use other repo files, it is a good idea to delete other repo files.

5. Note (1) If your baseurl cannot be accessed, it will appear

Http://mirrors.163.com/centos/%24releasever/os/x86_64/repodata/repomd.xml: [Errno] Pycurl ERROR-"The requested URL returned error:404 not Found "indicates a problem with BaseURL. Change all $releasever in baseurl=http://mirrors.163.com/centos/releasever/os/basearch/in the downloaded repo file to 6 (2) machine to be able to network, ping Www.baidu.com try, (3) Execute the command yum Clean All (4) Yum install gcc-c++. Installation instructions are successful.

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.