The correct answer is A. rpm -qpR foo.rpm.
The rpm -qpR foo.rpm command displays the requires information for the RPM package file foo.rpm. This includes the list of dependencies that the package requires in order to be installed and run properly.
The other options are incorrect:
B. rpm -dep foo: This command displays the provides information for the RPM package file foo.rpm. Provides information indicates what capabilities or services the package provides, not its dependencies.
C. rpm -ld foo.rpm: This command displays the list of files that are installed by the RPM package file foo.rpm. It does not provide information about dependencies.
D. rpm -R foo.rpm: This command lists the files that are contained within the RPM package file foo.rpm. It does not provide information about dependencies.
E. rpm -pD foo: This command displays the pre-install script for the RPM package file foo.rpm. The pre-install script is executed before the package is installed, and it is not related to dependencies.
Seems like -R on it's own does the job according to man, q does not exist.
Man page on -R
List capabilities on which this package depends
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Iamrandom
Highly Voted 1 year, 8 months agoNinymo
Most Recent 3 months, 3 weeks agoslacked4222
7 months, 3 weeks agoSarah4
8 months, 3 weeks agoNeoSam999
1 year, 6 months agoblk_542
1 year, 8 months agoklever
1 year, 9 months ago