<br><div class="gmail_quote">On Thu, Jun 12, 2008 at 2:57 PM, Michael Jennings <<a href="mailto:mej@kainx.org">mej@kainx.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday, 12 June 2008, at 14:02:47 (-0700),<br>
<div class="Ih2E3d">Grant McWilliams wrote:<br>
<br>
> And when CentOS goes from 5.0 to 5.1 to 5.2 do I go to all 100<br>
> machines and change the URL lines for each baseurl and mirrors or do<br>
> I just go with the variables set by centos-release (or wherever Yum<br>
> get's them)?<br>
<br>
</div>Do you do that now?  No.  Why not?  Because $releasever is "5" and not<br>
"5.0" or "5.1."  And that value doesn't change.  Your installs still<br>
roll gracefully from version to version due to the magical moving of a<br>
symlink on the repository server.  It has nothing whatsoever to do<br>
with $releasever changing.<br>
<br>
It would work exactly the same way with smart.  The only real<br>
difference is that smart doesn't have to query the version of a<br>
package every time it runs to obtain a value that never changes.<br>
<div class="Ih2E3d"><br>
Michael<br>
<br></div>
</blockquote></div><br>I did notice the repository does this but that brings up the question as to why Yum uses variables so much. Does it query each package for $releasever and $arch and $basearch each time it installs something or does an update? I really don't know so that's a question but I'd have a hard time believing it's doing this for every package in all repos every time you want to update. If it is then I haven't given the YUM folks enough credit because it's screaming... <br>
<br>So I guess the question (to everyone) is this - does Smart need variables in the URLs. Maybe I don't understand why YUM has them. I tend to believe that most things are done for a reason but maybe it's unnecessary.<br>
<br><br>Grant<br><br clear="all"><br>