RPM Community Forums

Mailing List Message of <rpm-users>

Re: Finding out triggered package version

From: Jefferson Ogata <rpm-users@antibozo.net>
Date: Thu 15 Jul 2010 - 03:42:08 CEST
Message-ID: <4C3E6770.7030002@antibozo.net>
On 2010-07-15 01:28, Jeff Johnson wrote:
> On Jul 14, 2010, at 8:26 PM, Jefferson Ogata wrote:
>> I'm trying to write a SPEC file for a package that will be triggered on kernel upgrades. Its trigger scriptlet will execute a script to install a kernel module. The script needs to know the version of the new kernel.
>>
>> Is there any way for a trigger scriptlet to discover the version of the triggered package that is being installed?
> 
> I'm gonna assume rpm-5.x behavior (because different than @rpm.org).
> 
> There is a means iirc (but I can't remember offhand which of these methods "works")

Thanks for the detailed response. Actually using rpm-4.4.2.3-18.el5 and 
will ask on the rpm.org list as well, but thought you might have some 
ideas, and you did.

Given that no matter what I do it seems a bit klugey, I'm leaning toward 
just enumerating all the installed kernels and making sure the target 
module is installed in each of them.

Will follow up in a couple of days. Thanks again for the great info!
Received on Thu Jul 15 03:42:26 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.