Home  >  Article  >  Operation and Maintenance  >  What should I do if an error is reported when executing the yum command under centos?

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

王林
王林Original
2020-03-27 11:56:542792browse

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

(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

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

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

4. Use the following command to reinstall yum.

yum makecache

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!

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