Update installed httpd to an available newer version.
Do not update every other upgradeable package.
Which command is appropriate?
yum update PACKAGE limits the update transaction to the named package. Without a name, yum update normally targets all updates.
Detailed explanation
yum check-update httpdIncorrect. check-update reports available updates without applying them.
Incorrect. check-update reports available updates without applying them.
yum update httpdCorrect. yum update httpd updates only httpd.
Correct. yum update httpd updates only httpd.
yum updateIncorrect. yum update without an argument normally includes all applicable updates.
Incorrect. yum update without an argument normally includes all applicable updates.
yum makecache httpdIncorrect. makecache refreshes repository metadata.
Incorrect. makecache refreshes repository metadata.
Try it yourself
An example you can run in a temporary verification environment.
yum --assumeno update httpdExpected result
httpdの更新計画を表示し、変更は行わないKey points
- A package argument limits scope
- check-update only checks
- No-argument update is broader
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.