Is there a way to add and remove packages at the same time with a single yum command? For example, installing postfix and removing sendmail without running two separate commands/transactions.
Is there a way to install and remove packages in a single yum command?
fedora;rhel;yum
Yes. Invoking yum shell will allow you to specify multiple commands that will happen simultaneously when run is entered.