[Yum] Re: Prevent YUM from installing kernel as dependency?

Axel Thimm Axel.Thimm at physik.fu-berlin.de
Mon Jan 12 13:00:23 UTC 2004


On Mon, Jan 12, 2004 at 02:41:05PM +0200, Mihai T. Lazarescu wrote:
> Sorry, Seth, looks like I missed to address the essential in
> my post. :-)
> 
> Here it is.  I have installed:
> 
>     kernel-module-ov511-2.26-0_2.4.22_1.2115.nptl.rhfc1.dag
>     kernel-2.4.22-1.2115.nptl
> 
> There is a:
> 
>     kernel-module-ov511-2.27
> 
> in DAG's repo.  YUM tries to upgrade my installed
> kernel-module-ov511-2.26 to the repo newest,
> kernel-module-ov511-2.27.  Up to this point is OK.
> 
> Problem is kernel-module-ov511-2.27 does not exist in the repo
> for my kernel (kernel-2.4.22_1.2115.nptl).
> 
> At this point, I would want YUM to give up, since
> I do not want it to attempt to install a new kernel
> (kernel-smp-2.4.20-28.9.i686) to satisfy the dependency of a
> new kernel module (kernel-module-ov511-2.27.)

I believe this is not really something yum has to solve, but the
package design itself. kernel module rpms should contain the kernel's
version in their name (the rpm "name"), so that all kernel modules for
different kernels have their own upgrade path.

> YUM's behavior is instead to drag in
> kernel-smp-2.4.20-28.9.i686 as a dependency of
> kernel-module-ov511-2.27-0_2.4.20_28.9.rh90.dag.i686.

You can exclude files from being upgraded with, e.g.

exclude=kernel, kernel-smp

Did you try that (check the manpage for yum.conf)?

> This is unacceptable for me, since:
> 
>     * I would end up with a new kernel (which is not what I
>       want YUM to do automatically);
> 
>     * even worst, the new kernel would not be for my
>       architecture (which is single processor, not SMP).
> 
> The question is how can I prevent the kernel installation,
> unless I explicitly ask for it on command line (e.g., yum
> install kernel-whatever)?
> 
> Mihai
> 
> On Mon, 12 Jan 2004, seth vidal wrote:
> 
> > > Is there a way to prevent YUM from installing a new (and wrong
> > > kind and version) kernel as a dependency for a package update?
> > > 
> > > Specifically, 'yum update' results in:
> > > 
> > >     I will do the following:
> > >     [install: kernel-smp 2.4.20-28.9.i686]
> > >     [update: kernel-module-ov511 2.27-0_2.4.20_28.9.rh90.dag.i686]
> > >     Is this ok [y/N]: n
> > > 
> > 
> > so I'm a bit confused.
> > 
> > what version of kernel-module-ov511 do you have installed?
> > 
> > -sv
> _______________________________________________
> Yum mailing list
> Yum at lists.dulug.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum

-- 
Axel.Thimm at physik.fu-berlin.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20040112/554e8409/attachment-0001.pgp 


More information about the Yum mailing list