Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ill give an example on the problem that I am having.

I have a package, lets name is pack ver. 1 currently on the yum server, then I put an updated one "pack ver. 2", after reindexing the yum server, I tested it.

doing a "yum clean all && yum search pack" it will say that I have ver. 1 but doing a "yum install pack" it will say that it will install ver. 2

My question is, how come when doing the search it will only see ver. 1 and not ver. 2? This will confuses our user when they are doing the search.

share|improve this question
What does yum list available say? – Mark Wagner Dec 14 '10 at 0:51
have you tried yum clean all; yum clean dbcache; yum clean metadata; yum -y update ? - also make sure you recreate the source repo (delete the old files and use createrepo) – silviud Dec 14 '10 at 1:25

This isn't so much an answer as a correction. If you want to see what specific versions of a package are available, you'll be much more successful if you use yum info, which will show you the latest installed and the latest available. yum search won't differentiate between installed and available versions, because it's purpose is to search for package names, not versions.

You can also use any of the following:

yum list installed pack
yum list available pack
yum list pack

You can also always get a list of commands by typing man yum at the prompt.

Hope this helps!

share|improve this answer

Your Answer


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.