Just use .spec file. Obsoletes: - if you want to uninstall other versions Conflicts: - if you want to keep 1st installed rpm package and stop 2 other packages from installing (And you all 3 packages can use Provides: hebvbk for example so depending packages dont care which one of the 3 packages is installed).