centos--Repair Yum

Source: Internet
Author: User

Recently because the company needs has been, has been in the development of CentOS, you know, this thing to engage in a problem, especially for my half-baked people, especially pain. As a result, it is estimated that a number of subsequent articles on CentOS will be published.

It is estimated that if you are not idle and have nothing to do, you will not spoil the Yum used to install the software. The reasons for my bad are as follows:

1, because Yum can not find a software I want, memory seems to be mod_python (this thing for a long time cannot be loaded Ah, do not know whether the software version and the current system is incompatible with the problem)

2, so ready to change a source, with Epel

3, change the time is very smooth, all normal, in order to start Epel source, so to change the configuration file

4, change the configuration file, changed the/etc/yum.repos.d/eped.repo, but accidentally, with vim, the contents of the file covered.

5, Finally, it caused the problem error.

Let's start with the repair process:

1, the first Epel,yum and so on all remove

Rpm-aq|grep Epel|xargs rpm-e--nodeps

Rpm-aq|grep Yum|xargs rpm-e--nodeps

2, go to a good place CentOS resources, Address: Http://centos.ustc.edu.cn/centos, for example, below we need to find things in the following locations:

Http://centos.ustc.edu.cn/centos/6.4/os/x86_64/Packages/, all the newest 64-bit.

Download the following software: (in order to eliminate the version of the problem, so here only give the software name, version and arch own decision)

Yum

Yum-metadata-parser

Python-iniparse

Yum-fastestmirror

3. Install the above software in the following order

RPM-IVH Python-iniparse (Remember, here you have to change to the full name of the rpm you downloaded, for example, python-iniparse-0.2.3-4.el5.noarch.rpm, under the same token)

RPM-IVH Yum-metadata-parser

RPM-IVH Yum Yum-fastestmirror

4, yum update

5, you are done, steal the music


Note: Reprint indicates the source, respect typing toil.


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.