百胜没有显示任何更新的软件包

我有一台CentOS 6.3机器。 我正在运行yum update但不显示任何更新的软件包。 我已经试过yum clean allyum clean expire-cache 。 任何帮助将非常感激。

 [root@www1 yum.repos.d]# yum list update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.xmission.com * epel: fedora-epel.mirror.lstn.net * extras: mirrors.xmission.com * updates: mirrors.xmission.com Error: No matching Packages to list 

PS我也安装了epel ,之前我也在玩。 我在想,那天我可能搞砸了,可能…

PPS我也尝试使用baseurl而不是mirrorlist ,再次没有成功…

更新

我在我的yum.conf有这个行,应该保留postfix包以进行手动更新。 我只是评论一下,现在一切都好了。 有谁能解释为什么?

 exclude=postfix* 

回答

我试图做yum list update这是错的! 我应该写updatesupdate 。 其实yum update工作正常,但是我认为如果yum list update不起作用,那么yum update将不能正常工作。

错误:没有匹配的软件包列表

这意味着没有名为…“update”的软件包。 正确的命令是:

 yum list updates 

man yum

 LIST OPTIONS The following are the ways which you can invoke yum in list mode. Note that all list commands include information on the version of the package. yum list updates [glob_exp1] [...] List all packages with updates available in the yum repositories.