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
2. Use the following command to change the value of plugins to 0 and modify the yum configuration file.
vi /etc/yum.conf
#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!