LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Using yum to apply kernel modules - architecture questions (https://www.linuxquestions.org/questions/linux-kernel-70/using-yum-to-apply-kernel-modules-architecture-questions-4175554377/)

needsleep 09-24-2015 06:03 AM

Using yum to apply kernel modules - architecture questions
 
When I get a kernel update, it drops the installed module for my graphics card driver, kmod-nvidia-304xx from ELRepo. I am confused over how this works and what's happening behind the scenes on my system, which is CentOS 7.1, btw.

I start with a system that works with the module installed.
I update the kernel.
But if I reboot and grub into runlevel 3 (multi-user.target), on the new kernel and try to do,
yum install kmod-nvidia-304xx
I curiously get a "nothing to do" response from yum. It thinks it's already installed it.
But it is only installed on the older kernel, not the newest one.
So to install on the new kernel, I found I can run,
yum erase kmod-nvidia-304xx
and install it (again). And that works.

Erase removes it not only from the kernel, but from my system. So I download the 30 Mb all over again too. This takes awhile. Maybe I will try to use "yum remove" next time.

Did the erase remove it from the former kernel?
It certainly allows it to install it on the new kernel.

Why does yum become confused as to which kernel we're targeting? I would have thought yum would work against the currently running kernel.

Is there a switch I can throw that tells yum to ignore it's own thinking and install it again?
So does this mean I can have only ONE kernel with the kmod-nvidia-304xx module installed?

According to elrepo, the kernel was supposed to carry over this module across kernel updates, but it doesn't do it for me.

Thanks,

robertdaleweir 09-26-2015 09:02 PM

Quote:

Originally Posted by needsleep (Post 5424947)
When I get a kernel update, it drops the installed module for my graphics card driver, kmod-nvidia-304xx from ELRepo. I am confused over how this works and what's happening behind the scenes on my system, which is CentOS 7.1, btw.

I start with a system that works with the module installed.
I update the kernel.
But if I reboot and grub into runlevel 3 (multi-user.target), on the new kernel and try to do,
yum install kmod-nvidia-304xx
I curiously get a "nothing to do" response from yum. It thinks it's already installed it.
But it is only installed on the older kernel, not the newest one.
So to install on the new kernel, I found I can run,
yum erase kmod-nvidia-304xx
and install it (again). And that works.

Erase removes it not only from the kernel, but from my system. So I download the 30 Mb all over again too. This takes awhile. Maybe I will try to use "yum remove" next time.

Did the erase remove it from the former kernel?
It certainly allows it to install it on the new kernel.

Why does yum become confused as to which kernel we're targeting? I would have thought yum would work against the currently running kernel.

Is there a switch I can throw that tells yum to ignore it's own thinking and install it again?
So does this mean I can have only ONE kernel with the kmod-nvidia-304xx module installed?

According to elrepo, the kernel was supposed to carry over this module across kernel updates, but it doesn't do it for me.

Thanks,

Hi needsleep
First
Quote:

Did the erase remove it from the former kernel?
The erase removed it from your system. It is not "removed from the former kernel".
Second
Quote:

It certainly allows it to install it on the new kernel.
No it just installs it on your system. It obviously has different libs or whatever which is loaded at runtime for your newest kernel.
Third
Quote:

Why does yum become confused as to which kernel we're targeting? I would have thought yum would work against the currently running kernel.
It does not get confused about kernels but it recognizes different packages especially if they have similar names.
Fourth
Quote:

Is there a switch I can throw that tells yum to ignore it's own thinking and install it again?
No.
Fifth
Quote:

So does this mean I can have only ONE kernel with the kmod-nvidia-304xx module installed?
Each Kernel will work only with its designated module.
Sixth
Quote:

According to elrepo, the kernel was supposed to carry over this module across kernel updates, but it doesn't do it for me.
Not sure how Cent OS 7.1 handles dependencies, as I use Fedora.


All times are GMT -5. The time now is 05:29 PM.