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.
Incorrect. install moves in the opposite direction.
yum update httpdIncorrect. update changes package versions.
Incorrect. update changes package versions.
yum remove httpdCorrect. yum remove httpd creates the removal plan for review.
Correct. yum remove httpd creates the removal plan for review.
yum clean httpdIncorrect. clean manages caches and does not uninstall the package.
Incorrect. 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 / 変更なしの確認
- 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.