0

I have an RPM file that need to be installed, before installing I want to check the version of packages contained within it. If the package is already installed I can use rpm -qi to know the version number, but what option do I use to find out the version if the package is not installed?

Perception
  • 79,279
  • 19
  • 185
  • 195
anish
  • 6,884
  • 13
  • 74
  • 140

1 Answers1

2

The -p option can be used to direct a query at an uninstalled package.

rpm -qip package.rpm
geekosaur
  • 59,309
  • 11
  • 123
  • 114