[Rpm-ecosystem] lua, unprivileged rpm, and rpm-ostree

Florian Weimer fweimer at redhat.com
Thu Sep 1 13:24:46 UTC 2016


On 08/19/2016 08:08 PM, Neal Gompa wrote:

>> This is largely due to the lack of delayed script execution in RPM. dpkg,
>> for instance, guarantees that the dependencies are at least unpacked before
>> scripts run, so it's possible to use scripts safely in many more cases.
>>
>
> This is not completely true. The guarantee dpkg gives only applies
> when a package uses "Pre-Depends" in its control file. If I recall
> correctly, we had something similar in RPM a long time ago called
> "PreReq", but today it just silently converts to "Requires(pre)" and
> "Requires(preun)".

Note that I said “unpacked”, not “installed”.  The files are there, but 
the scripts have not yet run.  In many cases, the package is pretty much 
fully usable in such a state, particularly those parts which would be 
called from a maintainer script.

Florian



More information about the Rpm-ecosystem mailing list