How can I install and remove an rpm package in one command?
Issue
I would like to replace sendmail with postfix. If I try to remove sendmail, rpm complains that I cannot remove it becauseo cronie and other packages depend on it. How can I remove sendmail and install postfix in one single command?
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
