Ask Your Question

How can I check which version of a package is installed on my box

asked 2013-08-19 15:01:01 -0500

roelof gravatar image

updated 2013-08-19 21:41:22 -0500

FranciscoD_ gravatar image


I work since a few minutes with Fedora and I wonder how I can check which version of a pacakge is installed on my box by using CLI,

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-08-19 15:04:22 -0500

baptistemm gravatar image

updated 2013-08-19 15:40:43 -0500

You can do that with

rpm -q $packagename

You can get also the info with

yum info $packagename
edit flag offensive delete link more


If the poster is very new to Linux, or to rpm-based distros, he's probably not going to know that rpm is the appropriate command, even if he knows enough about man to use it. Telling him that he should have RTFM, when he doesn't even know where in TFM to look isn't going to help, and may well chase him away. Now, telling him how to learn more about rpm by using man is a good thing, because it helps him learn; telling him to read up on a command he's probably never heard of either makes him feel stupid, unwelcome or, at worst, both.

sideburns gravatar imagesideburns ( 2013-08-19 15:28:06 -0500 )edit

yup, you're right, I read a bit fast. I corrected the answer.

baptistemm gravatar imagebaptistemm ( 2013-08-19 15:35:13 -0500 )edit

I'd still include man rpm and man yum in the answer though. That'll at least document how he can get more information on the commands.

FranciscoD_ gravatar imageFranciscoD_ ( 2013-08-19 21:38:56 -0500 )edit

Yes, as a source of further information. First you give him what he needs right now, then you add on how to find out more as he needs it.

sideburns gravatar imagesideburns ( 2013-08-20 00:00:31 -0500 )edit

answered 2013-08-19 15:40:26 -0500

Cygniapolis gravatar image

One way to determine the package version is to open a terminal and type "yum info" and then the package name, so e.g. "yum info firefox", which gives a number of facts about the package, including the version. Also, you can simply open the built-in Software program, search or type the name of the package, and in the line-item for that package will be the version.

edit flag offensive delete link more

Question Tools


Asked: 2013-08-19 15:01:01 -0500

Seen: 460 times

Last updated: Aug 19 '13