I noticed while removing httpd package that dependencies installed all not removed along with that

# yum remove httpd

How can i remove a package and dependencies which were installed along with that without affecting other services, like if some dependencies are being used by other services

 yum autoremove

will remove any unneeded dependencies from your system. You need to add clean_requirements_on_remove=1 to yum.conf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.