Inspect dependencies requested by httpd and packages that provide them.
Do not merely search the description for the word httpd.
Which command is appropriate?
yum deplist PACKAGE lists dependencies and candidate providers in YUM 3. Some compatible implementations use repoquery instead.
Detailed explanation
yum search httpdIncorrect. search finds names and descriptions but does not expand dependencies.
Incorrect. search finds names and descriptions but does not expand dependencies.
yum info httpdIncorrect. info shows general metadata rather than a provider list for each dependency.
Incorrect. info shows general metadata rather than a provider list for each dependency.
yum deplist httpdCorrect. yum deplist httpd lists dependency requirements and providers.
Correct. yum deplist httpd lists dependency requirements and providers.
yum repolist httpdIncorrect. repolist lists repositories.
Incorrect. repolist lists repositories.
Try it yourself
An example you can run in a temporary verification environment.
yum deplist httpd | sed -n '1,20p'Expected result
dependencyとproviderの組が表示される(実装によりrepoqueryを使用)Key points
- deplist lists dependencies
- Providers are shown
- Implementation versions can differ
Notes
- Environment: YUM 3.x。DNF互換YUMでは提供サブコマンドを確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.