Re: rpm installation inside another rpm - database locked [wd-vc]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/22/05, Jeff Johnson <n3npq.jbj@xxxxxxxxx> wrote:
> As long as concurrent access to /var/lib/rpm is enabled (the default
> since rpm-4.1), then one can run rpm -q (and rpm -Uvh) in %post.
>
> In rpm-4.4.2 and later, there is another wrinkle needed, to get rid
> of the transaction fcntl lock.
>
> This can be done by adding either
>      rm -f /var/lock/rpm/transaction
> or
>      rm -f /var/lib/rpm/__db.000
> depending on what path is in use. Removing both won't hurt anything,
> the concurrent access locks in Berkeley DB are more than sufficient to ensure
> concurrency.
>
> The real trick is doing all this portably and reliably. That's called
> trying and testing.

Can you point to a list of which distributions use rpm-4.1 or later?

(I can't use any of these techniques myself, since I have to ship
RPMs that install on stock Red Hat 7.1, I think.)
- Dan

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux