How to reinstall rpm package?
You could also hit:
rpm -ivh --force [yourpackage.rpm]
which safely overwrites the old installed package with the desired new package. Furthermore, if you wish to install and upgrade simultaneously, then this next option:
rpm -Uvh [yourpackage.rpm]
will enable you to install including any upgrade simultaneously.
Another extra tip: You may face an error situation where an upgrade depends on another which in turn depends on another and inturn also depend on the one you want to install thus causing a "dependency upgrade loop". To avoid that hit:
rpm -Uvh --nodeps [yourpackage.rpm].
Try: rpm -iv --replacepkgs <packagefile>
.
More details are in the book.