RPM Uninstall error–multiple matches

Sometimes when trying to uninstall an rpm package, you might get an error that says “Package xyz specifies multiple packages”.

rpm -e unixODBC error: "unixODBC" specifies multiple packages

In that case you can issue the following command to uninstall the package :

rpm -e --allmatches unixODBC