Since I end up googling it each time I need this, it’s about time I write it down … If you want to query a specific RPM for information (Requires/Information/…) you’ll need to use the –package/-p option.
-p <file> — Query a Specific RPM Package File
Up to now, every means of specifying a package to an RPM query focused on packages that had already been installed. While it’s certainly very useful to be able to dredge up information about packages that are already on your system, what about packages that haven’t yet been installed? The -p option can do that for you.
So, if I wanted to show the Requires of my vmware-tools-kmp:
1 |
rpm -qR -p vmware-tools-kmp-default-3.5.0_184236_2.6.16.60_0.21-0.5.i586.rpm |