1. Delete the cached Yum site information
# Sudo Yum clean all
2. Install fastestmirror so that Yum can automatically find the fastest source for download.
# Sudo Yum-y install Yum-fastestmirror
3. Modify/etc/yum. repos. d /*. in the repo file, add "& Country = us" to the end of the mirror ××××× line (usually the first line) of each file, that is, select the server in the United States, because the United States has the largest number of servers, the same time speed is basically the fastest (optional, because I have not compared)
With this setting, my yum speed has increased from 6 K/s-20 K/s to 150 K/s-220 K/s (I am a Telecom 2 M bandwidth ).
If it is still slow, press Ctrl-C to stop. Yum-fastestmirror will try the next source until you think it has reached your satisfaction.
4. Install axelget, which is a multi-thread download tool, and yum is a single-thread download tool.
Is http://axel.alioth.debian.org/