1
votes

I am renaming my RPM package to a new name. I am using Obsolete tag for the old package. Obsoletes removes the old package after installing the new package. This is causing issue in my program. Is there anyway to remove the old package before installing the new package?

2

2 Answers

0
votes

your question is not very clear. As I answered in your related question How do we rename a rpm build?, when using Obsoletes correctly, rpm will automatically uninstall your old package while installing the new one.

Note that the uninstall and install don't happen in separate transactions. The scripts intermingle somewhat as written here: https://fedoraproject.org/wiki/Packaging:Scriptlets?rd=Packaging:ScriptletSnippets

0
votes

"Obsoletes" uninstalls the old one after installation because that is the standard ordering of package upgrades.