Some options when rpm is detached

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.