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.
yum update httpdCorrect. yum update httpd updates only httpd.
yum updateIncorrect. yum update without an argument normally includes all applicable updates.
yum makecache httpdIncorrect. 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 / 変更なしの確認
- Use a disposable system or transaction preview before package changes.
- YUM compatibility layers can expose different subcommands across distributions.
Foundation review
Place the operation
An explicit package argument narrows the transaction while an argument-free update can include many packages.
Check the side effect
Use a transaction preview where available.