Solve the problem of slow update caused by the centos update plug-in fastestmirror.

Source: Internet
Author: User

Fastestmirror is used to automatically detect the update source speed and remove the slow source. This is a very advanced method, but the problem also arises: if the network environment is changed, as a result, the source speed in the cache is slow. How can I replace a new source to update centos?

 

The reason is that the recent updates are very slow, and it seems to be a long connection to the source. Note that it seems to be a source called fr2.rpmfind.net. No wonder the speed is so high. So, updated the source and traffic of Sohu. The source of FR2 is still used. Very depressing. I don't know why. Suddenly

 

[Root @ localhost Yum] # Yum install mplayer
Loaded plugins: fastestmirror, rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Loading mirror speeds from cached hostfile
* Rpmforge: fr2.rpmfind.net
Setting up install process
Resolving Dependencies
--> Running transaction check
---> Package mplayer. i386 0:1. 0-0.43.svn20090711.el5.rf set to be updated
--> Processing dependency: libdirectfb-1.2.so.0 for package: mplayer
--> Processing dependency: libdca. so.0 for package: mplayer
--> Processing dependency: libmp 3lame. so.0 for package: mplayer

I think this is the source extracted from the cache. Then open list.txt in/var/Cache/Yum/rpmforge. And found no new Sohu source set in CenOS-Base.repo. So manually add

Http://mirrors.sohu.com/centos/?releasever/ OS /?basearch/
Http://ftp.sjtu.edu.cn/centos/5/ OS /?basearch/
Http://apt.sw.be/redhat/el5/en/?arch/rpmforge
# Outdated # response
# Outdated # response
# Identical # Authentication
Http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/?arch/rpmforge
# Outdated # http://developer.cpsc.ucalgary.ca/#/dag/redhat/el5/en/#arch/rpmforge
# Outdated # http://mirrors.ircam.fr/pub/dag/redhat/el5/en/#arch/rpmforge
# Outdated # http://rh-20..linux.iastate.edu/pub/dag/redhat/el5/en/#arch/rpmforge
Http://fr2.rpmfind.net/linux/dag/redhat/el5/en/?arch/rpmforge
# Outdated # http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/#arch/rpmforge
# Outofsync # http://www.?service.org/sites/apt.sw.be/redhat/el5/en/#arch/rpmforge

The top two addresses are newly added source addresses.

 

Okay. Solve the problem!

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.