Welcome, Guest! Registration


Thursday, 2018-03-22
Main » 2016 » October » 29 » rpm internal scripts calls' sequence on update
9:04 PM
rpm internal scripts calls' sequence on update

When updating a package via rpm or yum, you may observe old rpm's scripts breaking install of the new one. Assume we have my-app-0.1 rpm installed on the system, and my-app-0.2 being an update. Here is how the rpm scripts are getting called when we execute rpm -U my-app or yum update my-app:

install: %pre(my-app-0.2)
install: %post(my-app-0.2)
erase: %postun(my-app-0.1) - surprise! blast from the past :-)

I did not have a script in %preun stanza in the rpm I was troubleshooting, but you should be able to debug your case with rpm -vvv -U my-app-0.1.rpm.

Views: 276 | Added by: ep | Tags: rpm | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Registration | Login ]