and requires package1
# rpm -e package1 package2
cannot remove /directory - directory not empty
# rpm -e package2 package1
This problem will be addressed after rpm-4.0 is released.
rpm-4.0.3 erases packages in reverse order, reverses file lists as well, to
time reversal symmetry.