Remove installed httpd with YUM.
Review dependencies that may be included in the removal transaction before approving it.
Which subcommand should be used?
yum remove PACKAGE builds a dependency-aware removal transaction. Other packages that depend on it may also be selected, so review the plan.
Detailed explanation
yum install httpdIncorrect. install moves in the opposite direction.
yum update httpdIncorrect. update changes package versions.
yum remove httpdCorrect. yum remove httpd creates the removal plan for review.
yum clean httpdIncorrect. clean manages caches and does not uninstall the package.
Try it yourself
An example you can run in a temporary verification environment.
yum --assumeno remove httpdExpected result
削除対象と依存関係を表示し、変更は行わないKey points
- remove uninstalls
- Review dependency impact
- Approve only after checking the transaction
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
Removal changes installed state; cache cleanup does not.
Check the side effect
Read the removal list for important dependent packages.