From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 Description of problem: When several packages are uninstalled using a single rpm invocation they are not uninstalled in proper dependency order. Example: I have two packages, base and application. Application requires base. When installing both with "rpm -U base.rpm application.rpm" then base is installed first (even if I use "rpm -U application.rpm base.rpm"). Just as it should be. When uninstalling them "rpm -e base application" and "rpm -e application base" gives different results. Then the packages seems to be uninstalled in reverse command line argument order. That breaks the dependency and my application requires base to be available in the preun section. Version-Release number of selected component (if applicable): rpm-4.2.1 How reproducible: Always Steps to Reproduce: 1. Build attached packages 2. Install them 3. Try both variants of "rpm -e" as mentioned above Actual Results: Different uninstall order Expected Results: The same order. application should always be uninstalled before base since it has a "requires base" dependency. Additional info:
Created attachment 104926 [details] Example spec file for dummy base package
Created attachment 104927 [details] Example spec file for dummy application package
I think this is a duplicate of bug 129875
Collapsing into common rpm sorted erasure bug *** This bug has been marked as a duplicate of 158577 ***