Why does yum always need a global lock?

seth vidal skvidal at fedoraproject.org
Tue Oct 21 18:37:33 UTC 2008


On Tue, 2008-10-21 at 20:01 +0200, Christoph Höger wrote:
> Hi,
> 
> what does yum make requiring a global lock for _every_ operation as
> root? I can search/info/download as normal user, while updating the
> system but not as root. Why that?

B/c none of the /var/cache/yum dir is writable as a user. But as root it
is all writable. Changing the metadata while another yum operation is
going on will result in unpredictable results.

> Why do we need to lock yum for more than rpm transactions (shouldn't rpm
> do that at all) and cache write operations?

b/c we write out other data.

-sv






More information about the fedora-devel-list mailing list