[Yum-devel] stupid questions

Michael Jennings mej at caosity.org
Fri Jun 18 15:31:44 UTC 2004


On Friday, 18 June 2004, at 02:32:58 (-0400),
seth vidal wrote:

> user says:
>  yum update foo-1.1-1.i386
>   does this mean: 
>   please update my system to this package version, specifically.
>     OR
>   please update the installed package foo-1.1-1.i386 to whatever update
> is available

I vote for choice #1.  Choice #2 would be better written "yum update
foo" anyway.

> additionally:
>  if a user says:
>  yum install bar
>  
> they have installed bar-1.1-1.i386
> the repository only has installed bar-1.0-1.i386
> 
> should yum:
>    happily downgrade the package, since the user clearly asked to
> install bar, no matter to the version?
>    OR
>   exit and say "the only available version of bar is a lesser version
> than the installed version of bar, if you'd like to install the lesser
> version please completely specify the version in the command"

Choice #2.  Again, the principle of least surprise, IMHO.  Listing the
available versions along with the message might help too.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej at kainx.org>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "Even if it takes forever to win your heart and your love and your
  devotion, I know it's going to be worth the wait."
                                    -- Amy Grant, "Say You'll Be Mine"



More information about the Yum-devel mailing list