On Wed, Aug 31, 2011 at 2:08 PM, stan <gryt2(a)q.com> wrote:
> >> $ yumdownloader --source <package>
> >>
> > That's true if you are getting the package for the currently running
> > system, and it is how I get src.rpm packages on F15. But doing
> > that on F14 will not get an F15 package. The OP is running F14 and
> > wants newer kernels. I didn't, however, check whether
> > yumdownloader has an option like yum to set other repositories
> > while dowloading. There could be, and in that case your suggestion
> > will work with a little tweaking.
>
> $ yumdownloader --releasever=15 --source <package>
>
Thanks for that. After your post I looked at the options for
yumdownloader, and it turns out it inherits options from yum, and this
is one of them. Here's what it says about that option:
--releasever=version
Pretend the current release version is the given string.
This is very useful when combined with --installroot. Note that with
...
Do you know if a yum clean meta would clean up the cache corruption
after doing this?
It appears to store the information separately. I haven't had any
problems using this. I don't think you need to do anything afterwards.
Does this mean it is possible to update a non-running system by
using
releasever and installroot? e.g. update F14 from F15
yum -y update --releasever=14 --installdir=<path to F14 root>
I would think so but have never tried that. I usually do the 'chroot
/mtn/sysimage' method.After that I would think it would properly
detect the release of the chroot regardless of the rescue system you
booted.
Richard