CentOS 7 yum Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile

转载自:https://www.cnblogs.com/ryanzheng/p/11263388.html

yum install nginx

出现错误如下:

yum install nginx
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
.....
No package nginx available.
Error: Nothing to do

解决方法:

可能缺乏epel
EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux.

yum install epel-release

如果还没解决:

换源

禁用插件

1.修改插件的配置文件

 vim /etc/yum/pluginconf.d/fastestmirror.conf

enabled = 0//由1改为0,禁用该插件

2.修改yum的配置文件

vim /etc/yum.conf

plugins= 0//改为0,不使用插件

你可能感兴趣的:(CentOS 7 yum Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile)