If the RPM package is improperly prepared, various problems may occur during the uninstallation, resulting in the failure to uninstall the RPM package.
For example:
Error: % preun () scriptlet failed, exit status 1
Indicates that there is a problem with script execution in the % preun segment of RPM. The return code is 1. The RPM uninstallation will be aborted. To force uninstallation, you can use the option parameter.
Rpm-e XXX -- nopreun
Similarly, scripts in these paragraphs, such as % postun % pre % post, may also have problems.
-- Nopostun -- nopre -- nopost these options to ignore errors and allow installation or uninstallation to continue.
In addition, -- noscripts is equivalent to -- nopre -- nopost -- nopreun -- nopostun. Skip all the script execution in the four paragraphs.
When the error: Specifies multiple packages occurs, it indicates that two different versions of software with the same name are generated due to RPM installation or improper preparation. In this case, uninstallation cannot be performed normally, if you need to uninstall both, use the -- allmatches option.
Some options when rpm is detached