Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I tell the version of a package after doing a yum search?

e.g.

yum search rabbitmq

returns

rabbitmq-server.noarch : The RabbitMQ server

I need to know the version of this server.

share|improve this question

3 Answers 3

up vote 8 down vote accepted

You can find the version number of a package in your repositories with the yum info command.

# 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.

To find the version numbers of installed packages, you can use rpm with the -q option.

# 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
share|improve this answer
    
my version is much older...which repo are you using? –  DD. May 2 '12 at 14:16
    
I ran this command on my Fedora 16 laptop, but the command applies to any system with yum and rpm, such as RHEL or CentOS. –  Kenny Rasschaert May 2 '12 at 17:18
    
I'm running Centos 6 but my repo looks old...is there a way to update it? –  DD. May 3 '12 at 10:16
    
The EPEL repositories (fedoraproject.org/wiki/EPEL) also offer RabbitMQ-server 2.6.1 in their repository for CentOS/RHEL 6. Here's a guide to get you going: johnpoelstra.com/2010/12/23/rhel-6-epel –  Kenny Rasschaert May 3 '12 at 10:51

You can get more info with the following command:

yum info rabbitmq
share|improve this answer

OR

yum list rabbitmq

if you prefer condensed output.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.