0

I have one package VAB-6.1.0.500-0.x86_64. When I installed this on machine and run command rpm -q VAB, it is showing package VAB not installed . And if i run command rpm -q VAB- it is showing VAB-6.1.0.500-0.x86_64 which is expected ?

Why so? Is rpm needs fullname to search? Is there anything that is related to spec file?

I have tried on other machines where asking only rpm -q VAB is working fine. The machine on which rpm giving error was also working fine with rpm -q VAB previously.

Niraj Nandane
  • 1,318
  • 1
  • 13
  • 24

1 Answers1

0

The command "rpm -q VAB" will display what you want.

Try "rpm --rebuilddb" first. Then try "rpm -qvv VAB" or "rpm -qa | grep VAB".

Jeff Johnson
  • 2,310
  • 13
  • 23
  • i dont want to rebuilddb . `rpm -qa | VAB` is working fine but `rpm -q VAB` should also work . The strengh thing is `rpm -q VAB-` is working . Note hyphen(-) – Niraj Nandane Apr 17 '15 at 05:16
  • Queries are resolved against the rpmdb. You have differing results with one rpmdb than others, which indicates that there is something different. Try rebuilding the indices rather than trying to infer what is different about "rpm -q VAB-" vs "rpm -q VAB" – Jeff Johnson Apr 17 '15 at 14:52