Inspect httpd name, version, release, architecture, size, source, and description.
Do not install or update it.
Which command is appropriate?
yum info PACKAGE displays detailed package metadata without changing installation state.
Detailed explanation
yum info httpdCorrect. yum info httpd displays the requested metadata.
Correct. yum info httpd displays the requested metadata.
yum install httpdIncorrect. yum install changes package state.
Incorrect. yum install changes package state.
yum deplist httpdIncorrect. deplist focuses on dependency relationships.
Incorrect. deplist focuses on dependency relationships.
yum repolist httpdIncorrect. repolist displays repositories rather than one package.
Incorrect. repolist displays repositories rather than one package.
Try it yourself
An example you can run in a temporary verification environment.
yum info httpdExpected result
Name、Arch、Version、Release、Size、Repo、Summary等の項目Key points
- info shows details
- It is read-only
- Version and source are included
Notes
- Environment: YUM 3.xまたは互換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.