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.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityHow 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.
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
AFAIK, yum info
only shows information for one specific "instance" of a package. I wanted to know not what version I had installed but which were available on the repos. So this did it for me:
yum -v list package_name --show-duplicates
yum info
shows all packages, installed and available in enabled repos, by the name specified. Or if you run it without a package name it'll just show you all the info that it has.
– Xalorous
May 11 '17 at 15:35
yum info
(on a system apparently old enough that --show-duplicates
isn't an option to yum list
)
– Izkata
Jul 16 '18 at 14:48
first search php-mysqlnd by cmd: yum search php-mysqlnd afetr chose your version of php and install it
ea-php54-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases ea-php55-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases ea-php56-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases ea-php70-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases ea-php71-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases ea-php72-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases ea-php73-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
for my situation : yum install ea-php72-php-mysqlnd.x86_64