[CentOS-devel] yum update behavior plugin

Karanbir Singh mail-lists at karan.org
Sun Aug 13 11:13:48 UTC 2006

Charlie Brady wrote:
>> Charlie Brady wrote:
>>>> Well, plugin to remove all packages but yum, if yum is within 
>>>> updated packages, is easy to write. But plugin can only stop yum 
>>>> execution and I can't see way to run yum again after yum update by 
>>>> itself.
>>> I don't see why yum couldn't update yum, then exec the new yum 
>>> program, listing the remaining packages as install arguments. You'd 
>>> need to unlock the lock file before calling execve.
>> no! yum, on re-entry, needs to re-parse the metadata - its possible 
>> remote end metadata has changed for the new yum as well.
> OK, so you want the first yum to exec a new yum with the same arguments 
> that it itself was called with. It will then calculate its own 
> transaction set.

yes :)

> Hopefully it will not itself try to replace itself with the old yum 
> package.

humm ? after the yum package has updated, there really should be no hint 
of the old yum stuff.....

Karanbir Singh : http://www.karan.org/ : 2522219 at icq

More information about the CentOS-devel mailing list