How does centos update yum sources and centos update yum sources?
In fact, these things should be clearly written as soon as they are completed. They have been written for a long time. Maybe they have not been written in some places. I hope to see the kids shoes for help and I will update them again, if any error occurs, please criticize and correct it.
Some children's shoes may now have VPNs, so there is no speed to download some programs or plug-ins, or there may be no software to download from some sources. So we can change the centos yum source to Alibaba or 163. Here we provide you with some addresses (the address may be slightly incorrect. You can go to http: // mirrors. *. com to find your own address, * representing major websites such as 163)
163: http://mirrors.163.com/.help/CentOS-Base-163.repo
Alibaba: http://mirrors.aliyun.com/repo/Centos-7.repo
Sohu: http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
Below is the step for replacing the source:
1 // enter yum. repos. d Path 2 cd/etc/yum. repos. d3 // move the original source file elsewhere for backup 4 sudo mv CentOS-Base.repo CentOS-Base.repo.bk5 // download the source file (here change to 163 as an example) 6 sudo wget http://mirrors.163.com/.help/CentOS-Base-163.repo7 // Update Configuration 8 sudo yum makecacheView Code
Update completed is displayed after all updates are completed.
Reprinted please note
Author: Spring of Li xiao'er
Address: http://www.cnblogs.com/LittleTwoLee/p/5046088.html