RPM Community Forums

Mailing List Message of <rpm-users>

Q: modifying the rpm Database through scripts

From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Date: Tue 11 Jun 2013 - 09:50:24 CEST
Message-Id: <51B6F2E0020000A1000114B6@gwsmtp1.uni-regensburg.de>

I'm only spare-time RPM package builder, so I don't have huge experience. But I know another software packager (HP's SD (Software Distributor)).

I have a problem: One of my packages creates additional scripts during %Post and makes use of those. Those scripts are not temporary, but are intended to be used as commands.

During %preun those scripts are removed again.

Unfortunately rpm -qf knows nothing about these scripts, so I wonder whether I could dynamically modify the RPM database (durning installation, update, or removal) to make RPM know about these new files.

I know it's against the concept of signed packets (everything should be signed), but in HP's SD you could do such a thing through the command "swmodify" (modify a software package).

Is there an elegant solution for RPM? (Adding all possible script names as %ghost is not considered elegant by myself.)

Likewise if I'd precreate all the possible scripts, and then remove those not needed during %post, wouldn't RPM complain about missing files then?

Received on Tue Jun 11 10:00:38 2013
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.