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.
Correct. yum install httpd installs httpd and its dependencies.
yum search httpdIncorrect. yum search only searches names and descriptions.
Incorrect. yum search only searches names and descriptions.
yum info httpdIncorrect. yum info displays metadata without changing state.
Incorrect. yum info displays metadata without changing state.
yum remove httpdIncorrect. yum remove uninstalls an installed package.
Incorrect. 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 / 変更なしの確認
- 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.