RPM Community Forums

Mailing List Message of <rpm-users>

RPM Installation status

From: Mircea Lemnaru <mircea.lemnaru@gmail.com>
Date: Fri 18 Feb 2011 - 16:28:01 CET
Message-ID: <AANLkTi=k_b8MgKEpS3Cpqeq0SkJYz3w4ZWJ76WJZg4O1@mail.gmail.com>
Hi all,

I having some issues with a project that I am working on, in short , the
user installs 2 rpm’s , using the command say: “rpm –I pkg1 pkg2” . The
first package contains a post install script that fails , this results in an
general error / non zero return code so my wrapper over the rpm command
assumes the command failed and the rpms did not get successfully installed,
but it turns out that if I query the database after the command ended , the
packages show up as installed , no mention of the failed post install

So I need a way to query the database , or look at the output of the initial
RPM command to determine which packages failed, and which actually got
installed properly - and by properly I mean a package that got installed AND
all the script got executed without any error.

Does anyone know of any way for me do determine if the rpm’s got
successfully installed (that includes also the script phase) ? Shouldn’t the
rpm database contain also that info ? I mean it seems to me that’s a pretty
important information , to know if a post install script executed
successfully for a certain installation …

Any thoughts ?


Received on Fri Feb 18 17:45:52 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.