Home > Article > Operation and Maintenance > centos cannot use yum solution
centos cannot use yum usually because the yum mirror is gone.
Recommended tutorial: centos usage tutorial
Solution:
After installing CentOS, you generally need to modify the yum source before you can install and update the rpm A relatively ideal speed can be obtained during the packet processing. The faster ones in China include 163 source and sohu source. Here is the 163 source 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
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of centos cannot use yum solution. For more information, please follow other related articles on the PHP Chinese website!