Install httpd from an enabled YUM repository.
Resolve required dependencies as part of the transaction.
Which command is appropriate?
yum install PACKAGE selects a repository candidate and builds a transaction including required dependencies.
Detailed explanation
yum install httpdCorrect. yum install httpd installs httpd and its dependencies.
yum search httpdIncorrect. yum search only searches names and descriptions.
yum info httpdIncorrect. yum info displays metadata without changing state.
yum remove httpdIncorrect. yum remove uninstalls an installed package.
Try it yourself
An example you can run in a temporary verification environment.
yum --assumeno install httpdExpected result
導入計画を表示して確認へ進むが、--assumenoにより実行しないKey points
- install performs installation
- Dependencies are resolved
- Review the transaction before approval
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
Search and info inspect metadata; install is the state-changing operation.
Check the side effect
Review the transaction summary before confirming installation.