How to prevent installation of incompatible rpm packages
Solution 1:
There is a tag that can be used in a spec
file to explicitly disallow two conflicting packages to be installed:
The conflicts Tag
The conflicts tag is the logical complement to the requires tag. It is used to specify which packages conflict with the current package. RPM will not permit conflicting packages to be installed unless overridden with the --nodeps option.
The conflicts tag has the same format as requires. It accepts a real or virtual package name and can optionally include version and release specifications or a serial number.