Hi, I am building a package (foo) on RHAS2.1 that will replace an existing package (bar). I would like to have the install/upgrade operation for foo.rpm look for an existing bar.rpm and remove it if found. I have tried putting 'rpm -qa|grep bar / rpm -e bar' in the %pre section, but it fails (can't get lock on rpm db.) I have also tried to add an "Obsoletes: bar" tag, which seems to be recognized when I build the package, but doesn't remove bar.rpm. Simply naming the new package bar.rpm and incrementing the version number is not an option (for non-technical reasons.) Has anyone else run into this (and hopefully found a solution :) Thanks!! Gordon Keegan Unix Engineering Fidelity Investments Marlborough, MA _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list