Tag Archives: Linux – operations

Solution to Linux error loading mirror speeds from cached hostfile

Then the following operation was carried out
Still be the simplest above all, the network that sees you first has access
ping www.baidu.com
If not, set this blog at https://www.cnblogs.com/xuzhaoyang/p/11239145.html
Modify the YUM source to get the desired speed when installing the updated RPM package. Domestic relatively fast 163 sources, SOHU source. Take 163 sources as an example.

cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
yum clean all

Finally, you can use yum.