Delaying Post-scriptlets, ala Debian Apt.
Panu Matilainen
pmatilai at laiskiainen.org
Sat Oct 21 02:29:40 PDT 2006
On Fri, 20 Oct 2006, Gary Greene wrote:
> We're looking at using apt during our installation of PhoeNUX OS instead of
> using RPM, and we were wondering why apt-rpm doesn't delay the post
> scriptlets like Debian apt-get until after the installation transaction has
> completed. This would allow us to stop using rpm with a run twice to make all
> post scriptlets happy. Is there some limitation to apt-get in this manner,
> since I thought it used to be able to do this... We can use rpm's --nopost
> flag to stop them from running and then parse out the scriptlets from the db
> if need be to run them post file installation.
Execution of rpm scriptlets is a function of rpm / rpmlib, not apt-rpm.
Apt has never supported delaying execution of them and wont, unless rpm
itself gains such a feature. Apt-rpm does have couple of ways to run
arbitrary scripts after the transaction completes but that's a different
thing.
But really, if you need to run things twice to have things working, it
means your dependencies aren't right.
- Panu -
More information about the Apt-Rpm
mailing list