On Fri, 26 Mar 2004, Keegan, Gordon wrote: > 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.) > The obsoletes should work. Please, send what your obsoletes line looks like. Cheers...james _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list