centos cannot use yum solution

Release: 2020-03-20 15:35:43
Original
3645 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!