Hi Is there an option in the spec that i can say on remove do X - eg move a backup file back into place etc? eg %onremove mv foo bar thanks
%postun - I think. Tom Brown wrote:> Hi > > Is there an option in the spec that i can say on remove do X - eg move a > backup file back into place etc? > > eg > > %onremove mv foo bar > > thanks > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Milton Calnek BSc, A/Slt(Ret.) milton at calnek.com 306-717-8737 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Tom Brown wrote:> Hi > > Is there an option in the spec that i can say on remove do X - eg move a > backup file back into place etc? > > eg > > %onremove mv foo bar >There are some gotchas (re: removal during an upgrade vs outright removal, aka erasing an RPM) that are good to know about. This IBM DeveloperWorks article talks about the pre & post install/uninstall script parts of RPMs and covered these gotchas. http://www-128.ibm.com/developerworks/linux/library/l-rpm3.html?dwzone=linux -Shawn