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.
yum install httpdIncorrect. yum install changes package state.
yum deplist httpdIncorrect. deplist focuses on dependency relationships.
yum repolist httpdIncorrect. 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 / 読み取り操作
- Use a disposable system or transaction preview before package changes.
- YUM compatibility layers can expose different subcommands across distributions.
Foundation review
Place the operation
A metadata query is different from an install transaction or repository listing.
Check the side effect
Compare installed and available sections when both are shown.