Installing RPM's inside %post

Samir Cury eu at samircury.eng.br
Sun Jul 4 16:46:49 UTC 2010


Hi list,

I was having a problem when automating a software install via RPM, it is due
to a python script that I run on %post that actually installs other RPMs,
but it seems that for obvious reasons, when the script attempt to install
the RPMs it fail because the lock is still there (the father RPM is still
being installed) the install never goes on :

------------------------------------------------------------------------------------------------------------------------
[root at somehost ~]# rpm -ivh /share/apps/scratch/vdt-dcache-3.0-3.x86_64.rpm
Preparing...                ###########################################
[100%]
   1:vdt-dcache             ###########################################
[100%]

VDT install of dCache on:
2010-07-04 12:05:50.360732
Unpacking dCache server software.
* warning: waiting for transaction lock on /var/lib/rpm/__db.000 *
------------------------------------------------------------------------------------------------------------
Is there any obvious solution for that which I didn't see? I didn't wanted
to unpack the RPM's and work on all of their %pre and %post sections inside
my RPM, if this even work.

Thanks,
Samir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100704/446c3739/attachment.html>


More information about the Rpm-list mailing list