在进行yum搜索后如何判断包的版本?
例如
yum search rabbitmq
回报
rabbitmq-server.noarch : The RabbitMQ server
我需要知道这个服务器的版本.
您可以使用yum info命令在存储库中找到软件包的版本号.
原文链接:https://www.f2er.com/bash/386141.html# yum info rabbitmq-server Available Packages Name : rabbitmq-server Arch : noarch Version : 2.6.1 Release : 1.fc16 Size : 1.1 M Repo : updates Committer : Peter Lemenkov <lemenkov@gmail.com> Committime : Tue Nov 8 13:00:00 2011 Buildtime : Tue Nov 8 10:31:03 2011 Summary : The RabbitMQ server URL : http://www.rabbitmq.com/ License : MPLv1.1 Description : RabbitMQ is an implementation of AMQP,the emerging standard for high : performance enterprise messaging. The RabbitMQ server is a robust and : scalable implementation of an AMQP broker.
要查找已安装软件包的版本号,可以使用带-q选项的rpm.
# rpm -q kernel kernel-3.3.1-5.fc16.x86_64 kernel-3.3.2-1.fc16.x86_64 kernel-3.3.2-6.fc16.x86_64