[CentOS-devel] kernel-*-devel and yum updates for CentOS-4.x

Phil Schaffner Philip.R.Schaffner at nasa.gov
Mon Oct 23 13:23:13 UTC 2006


On Sun, 2006-10-22 at 11:12 -0500, Ralph Angenendt wrote:
> Johnny Hughes wrote:
> > -----------------------------------
> > There are 3 options here:
> > 
> > 1. Patch CentOS-4 yum to make yum install all kernel-*-devel files
> like
> > it does for kernel-devel (or the reverse ... make kernel-devel and
> > upgrade like the other files).
> 
> kernel-devel should be installed alongside, not upgraded. So if you
> have
> 
> kernel-a
> kernel-devel-a
> 
> installed and do a yum update, you should end up with
> 
> kernel-a
> kernel-b
> kernel-devel-a
> kernel-devel-b
> 
> installed on your machine, for example if you have to go back one
> kernel
>  as a module you need doesn't compile on kernel-b. If you didn't have
> kernel-devel-a anymore at that point, that could get quite ugly.


I think I agree, but smp is not explicitly addressed by the above.  My
example would be: If you have

kernel-2.6.9-42.0.2.EL (kernel-a)
kernel-2.6.9-42.0.3.EL (kernel-b)
kernel-smp-2.6.9-42.0.2.EL (kernel-smp-a)
kernel-smp-2.6.9-42.0.3.EL (kernel-smp-b)

installed and do a yum update, you should end up with

kernel-devel-2.6.9-42.0.2.EL (kernel-devel-a)
kernel-devel-2.6.9-42.0.3.EL (kernel-devel-b)
kernel-smp-devel-2.6.9-42.0.2.EL (kernel-smp-devel-a)
kernel-smp-devel-2.6.9-42.0.3.EL (kernel-smp-devel-b)

This is accomplished for me by having the following in  /etc/yum.conf

installonlypkgs=kernel kernel-smp kernel-hugemem kernel-devel \
kernel-smp-devel

Note that the above probably needs some further work, but works-for-me
currently.  IMHO, the "right way" [TM] to do this would be to change the
default for "installonlypkgs=" in yum.

(Any need for multiple kernel-doc versions?)

Phil







More information about the CentOS-devel mailing list