[Rpm-maint] [rpm-software-management/rpm] RFE: Subsecond resolution of package installation time (Issue #3934)

Michal Domonkos notifications at github.com
Tue Sep 23 10:54:03 UTC 2025


dmnks left a comment (rpm-software-management/rpm#3934)

> Maybe, could you clarify what time is recorded into the RPM database now? I was told that it is when the installation phase ends, before %post script is executed.

The timestamp is taken in between `%pre` and `%post`. Thus, my understanding is that, if a package restarts its service in `%post`, it's guaranteed to have a timestamp that's equal or later than the package's installation time. Likewise, if it's restarted in `%pre`, it's guaranteed to have it equal or earlier than the installation time. Anyway, as already mentioned by Florian,making the timestamp more granular isn't the proper solution, just a band-aid that might or might not improve the situation.

I wonder if RPM could "clamp" the timestamp so that it's one second earlier than the `%pre` scriptlet execution, or something like that.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3934#issuecomment-3323488275
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3934/3323488275 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250923/ad83bcc5/attachment.htm>


More information about the Rpm-maint mailing list