I'm trying to create a package and the install/uninstall scripts of the previous and new package must be called in a specific order.
According to http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#RPM_scriptlet_recipes, when upgrading an installed package, first the {pre,post}install scripts of the new package will run, and then the {pre,post}uninstall of the old package.
That means that at some time there will be both packages installed. How is this possible? Is the new package installed on a chroot somewhere? I can't find anything relevant.
Moreover: how can I start the service at the end of installation? If I add "service start xxx" at the post-install scriplet, then when upgrading the pre-uninstall will run which will stop the service again..