rpm spec - RPM "skip"s owned file during uninstall -
i have created rpm piece of software team building. installation works great, i'm adding in logic create software uninstall , restore scheme working state.
as part of install, have place configuration file on file system. however, when uninstall rpm, file left in directory, causes service function incorrectly 1 time our bundle uninstalled.
.spec file:
%files ... %attr(640, tomcat, tomcat) /var/lib/owf/lib/owfsecuritycontext.xml ... install log:
cat install.log | grep "owfsecuritycontext" ... d: fini 100640 1 ( 498, 501) 2336 /var/lib/owf/lib/owfsecuritycontext.xml;53a41ad5 ... files owned rpm:
$ rpm -ql ourtoolname | grep "owfsecuritycontext" /var/lib/owf/lib/owfsecuritycontext.xml uninstall log
$ cat remove.log | grep "owfsecuritycontext" d: fini 100640 1 ( 498, 501) 2336 /var/lib/owf/lib/owfsecuritycontext.xml skip why rpm "skip"ing file? there way (besides forcing remove in %postun section) tell rpm remove file, of other files owns?
edit:
after @etanreisner 's comments, appears file owned 2 packages: bundle created in question (by explicit file reference in %files section, , owf install rpm, owns entire directory in file lives.
given file ends beingness owned 2 packages, there way explicitly tell rpm remove regardless of status besides removing forcefulness in %postun scriptlet?
i'm not aware of way rpm ignore competing ownership , remove file anyway trying (and bit of code digging did other day figure out why rpm skipping file didn't nowadays along lines either, though wasn't looking @ time).
i believe entire directory ownership discouraged sort of reason.
rpm rpm-spec
No comments:
Post a Comment