Home  >  Article  >  Operation and Maintenance  >  centos cannot use yum solution

centos cannot use yum solution

尚
Original
2020-03-20 15:35:433770browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn