Description of problem: errors at reorder packages during uninstall. Version-Release number of selected component (if applicable): # rpm -qa rpm rpm-4.2.2-0.14 How reproducible: always Steps to Reproduce: 1. install setup + filesystem rpm to dir (rpm -i --root /dir1 ...) 2. install large packages set to same dir (rpm -i --root /dir1 `cat fileset`) 3. uninstall large packages set from this dir. (rpm -e --root /dir1 `cat fileset`) Actual results: /sbin/install-info: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory оÑибка: %preun(sed-4.0.7-3) оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑÑенаÑиÑ, код возвÑаÑа 127 /var/tmp/rpm-tmp.28347: line 3: /usr/sbin/userdel: No such file or directory /var/tmp/rpm-tmp.28347: line 4: /usr/sbin/groupdel: No such file or directory /sbin/install-info: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory оÑибка: %preun(krb5-workstation-1.2.7-19) оÑибка вÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑÑенаÑиÑ, код возвÑаÑа 127 /bin/sh: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory Expected results: works ok. Additional info:
Created attachment 102707 [details] uninstall packages list. list packages name for uninstall at step 3.
Created attachment 102708 [details] install packages list for step 2.
From the CLI, rpm orders erasures by reversing the partial order of the install. That is not an unreasonable choice, nor is it clear that there is a better algorithm. There has never been any attempt to insure that massive erasures "work" correctly. Defferred until somewhen ...
How i see rpm not add any reference from programs called from scripts to packages who have it. Without it reference me have bad order to errase.