Re: archscore question

seth vidal <skvidal-c/MNwgJ9CEH2fBVCVOL8/[email protected]> Fri, 11 Feb 2005 15:40:44 -0500
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
> What is the usual practice (yum/up2date) to determine the latest/best 
> rpm to use?
> 
> foo rpm:
>     E V R A
> 1. - 4 0 i386
> 2. - 4 0 i586
> 3. - 3 0 i686
> 
> 
> How does yum/up2date handle such a situation, assuming that it is a i686 
> machine?
> 
> I am guessing that a EVR comparison is done first followed by the best 
> archscore for the latest rpm with the same EVR, therefore 2 will be 
> installed? EVR comparison always comes first b4 archscore comparison?

well in yum it really depends on what is installed.

if you have foo.i386 installed, it's not necessarily going to be safe or
desirable to update to foo.i686, despite that it is the best arch for
your platform.

In fact, in yum, if exactarch is set in the config file - 3 would be be
considered as the best (and in fact) only update for that system if
foo.i686 is already installed.

if you're trying to install 'foo' and there is no prior foo installed
then yum does:
best ver then best arch

-sv