LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-24-2015, 06:03 AM   #1
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Rep: Reputation: 0
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,

Last edited by needsleep; 09-24-2015 at 11:47 AM.
 
Old 09-26-2015, 09:02 PM   #2
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by needsleep View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a few questions about modules in general that aren't part of the kernel dividingbyzero Linux - General 2 02-01-2009 01:52 PM
updated kernel with yum....modules? greatgoogamooga Linux - Kernel 2 12-18-2006 06:46 AM
Questions about building a new kernel - using /usr/src/linux and rc.modules Nylex Slackware 5 10-11-2006 11:09 AM
Kernel - Modules Questions ultrix Slackware 1 08-13-2004 09:56 AM
kernel comp questions w/ seperate modules?? neoninja Slackware 5 11-11-2003 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration