What should I do if an error is reported when executing the yum command under centos?

王林
Release: 2020-03-27 11:56:54
Original
2866 people have browsed it

What should I do if an error is reported when executing the yum command under centos?

Problem:

Executing the yum command displays the following error:

Loaded plugins: fastestmirror
Copy after login

(Recommended tutorial: centos tutorial)

Solution:

1. Use the following command to change the enabled value to 0 and modify the plug-in configuration file.

vi /etc/yum/pluginconf.d/fastestmirror.conf
Copy after login

What should I do if an error is reported when executing the yum command under centos?

2. Use the following command to change the value of plugins to 0 and modify the yum configuration file.

vi /etc/yum.conf
Copy after login

What should I do if an error is reported when executing the yum command under centos?

#3. Use the following command to clear the cache and rebuild the yum source.

yum clean all
Copy after login

4. Use the following command to reinstall yum.

yum makecache
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What should I do if an error is reported when executing the yum command under centos?. 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 admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template