[Yum-devel] pain and suffering and allowdowngrade
Florian Festi
ffesti at redhat.com
Thu Oct 30 09:28:48 UTC 2008
Sorry, for the late answer, but this think is too important to not speak up.
seth vidal wrote:
> Been thinking about allowdowngrade.
>
> How does that work for things like this:
>
> yum --allowdowngrade update \*
This should work like an normal update if there are no problems.
--allowdowngrade does allow downgrades it should not alter the basic meaning
of the yum commands and should not alter the way wildcards are interpreted.
> Does that revert you back to GA of your distro?
I could image that it does revert you back to GA if you disable the update
repository. Then GA will contain the newest available packages.
I want to remind everybody that "yum update" and "yum update \*" are not the
same commands and are not supposed to create the same results. "yum update
\*" should be avoided in normal operation. Downgrading to GA is not a normal
operation, though.
> If we bit the bullet and put in a downgrade command or implemented it in
> plugin what is the behavior for it?
It might be sufficient to allow non newest packages at the command line and
as resolution of dependencies. This would include the ability of the
depsolver to downgrade on dependency.
> Maybe downgrade has a transaction size limit?
I don't think this is neccessary. The depsolver should/must be fast enough
to handle this.
> maybe downgrade is doomed to failure due to the depsolver definitely not
> playing nicely and due to scriptlets screwing all this anyway?
I am quite sure that we need some adjustments to the depsolver. It might be
better to wait until the development branch is revived with a much more
cleaned up depsolver.
Scriptlets are a problem but they are not our problem. The users are on
their own if the scriptlets are not able to handle the downgrade situation
properly. This has always been the case with rpm and will not go away. A
small note in the man page is all I'd do about this.
Florian
More information about the Yum-devel
mailing list