101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 34


Which of the following commands lists the dependencies of the RPM package file foo.rpm?

Show Answer
Correct Answer: A

To list the dependencies of the RPM package file foo.rpm, the correct command is 'rpm -qpR foo.rpm'. The '-q' option is used for querying an RPM package, '-p' specifies the package file, and '-R' is used to list the capabilities on which this package depends, which includes its dependencies.

Discussion

7 comments
Sign in to comment
IamrandomOption: A
Oct 28, 2022

answer is correct: -q = query -R = List capabilities on which this package depends (option of query parameter) -p = package file

kleverOption: D
Oct 11, 2022

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

blk_542Option: A
Nov 17, 2022

A is correct: https://phoenixnap.com/kb/rpm-command-in-linux

NeoSam999Option: A
Jan 10, 2023

Correct Answer: A rpm -qRp [package.rpm] - show the requirements/dependencies of the indicated rpm file

Sarah4
Oct 27, 2023

https://rpm-software-management.github.io/rpm/man/rpm.8.html

slacked4222Option: A
Nov 27, 2023

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.

NinymoOption: A
Mar 24, 2024

Answer: A