replace rpm with yum while rpm using replacepkgs flag

sheffadmin asked:

I use the following rpm syntax in order to install few rpm’ syntax that exist under pkgs

rpm -ivh --replacefiles --replacepkgs /home/pkgs/*.rpm

unfortunately in case of rpm dependencies rpm failed , so we want to use yum in order to solve dependencies

in order to use yum , what is the equivalent approach for the above rpm syntax ?

My answer:

To reinstall a package with yum is trivial:

yum reinstall <name>

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.