[Yum-devel] Looking for help with a Yum plugin...
Seth Vidal
skvidal at fedoraproject.org
Fri Jul 17 17:31:24 UTC 2009
On Fri, 17 Jul 2009, Douglas Kilpatrick wrote:
> Seth Vidal wrote:
>> Now, yum will not automatically downgrade pkgs as a depresolving step -
>> it's generally a bad idea anyway b/c it could very well mean downgrading
>> into a security whole or walking to backward incompatible versions of
>> things. No fun.
>
> In my experience in large systems, much more downtime is caused from
> deploying poorly tested code than from attackers. :)
Automatically downgrading would prove that anecdote incorrect.
In my experience of large systems, persistent and vigilant patching is
good preventative medicine.
>> If you want to write a plugin to do this you'd be best off just calling
>> downgrade() for each of the pkgs you want to downgrade and then letting yum
>> depsolve normally from there.
>
> I just pulled the current source, and I don't understand what you're
> suggesting...
>
Tag your packages with a special provides then on update calls have your
plugin intercept to see if that pkg is being upgraded. If it is
pre-depsolve go through and have the plugin downgrade() any of the items
which are being downgraded.
that's it.
-sv
More information about the Yum-devel
mailing list