Re: archscore question

Tsai Li Ming <[email protected]> Sat, 12 Feb 2005 11:12:08 +0800
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
seth vidal wrote:
>>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

So I'm gussing that 2 will be installed if there's no prio foo installed 
on the system, because of best verion then best arch comparison?

Liming