[CentOS] kmod-nvidia?
Lamar Owen
lowen at pari.edu
Fri Jul 20 22:37:52 UTC 2012
On Friday, July 20, 2012 05:30:14 PM m.roth at 5-cent.us wrote:
> Stephen Harris wrote:
> > On Fri, Jul 20, 2012 at 04:44:07PM -0400, m.roth at 5-cent.us wrote:
> >> Available Packages
> >> kmod-nvidia.x86_64 295.59-1.el6.elrepo
> > Yes, and it showed up in your list...
> > Or am I missing something?
>
> Think so. That was from my machine, where it's installed months ago. On
> the user's machine, all that shows, regardless of whether I disable all
> other repos and enable only elrepo, or if I use all and enable elrepo, all
> I see under available packages is nvidia-x11-drv. Sorry if I pasted in
> stuff to confuse.
Whoa, Mark. Man, you must be tired. The fact that your machine with the 290 driver only sees the kmod-nvidia for 295 and does not see nvidia-x11-drv is a big clue.
You might want to double check the includepkgs= line on the machine you originally posted about (not this latest machine), and make sure that it isn't:
includepkgs=nvidia-x11-drv
I can duplicate this behavior very easily, and can duplicate the reverse behavior as well, by manipulating the includepkgs= line. Here's an example run, from a RHEL 6.3 machine (same would apply to CentOS, just with a few differences in the yum output dealing with the RHN repos....):
First, I edit the elrepo.repo file:
[root at www ~]# vi /etc/yum.repos.d/elrepo.repo
[root at www ~]# grep includepkgs /etc/yum.repos.d/elrepo.repo
includepkgs=kmod-nvidia
[root at www ~]#
Ok, only kmod-nvidia.....
[root at www ~]# yum --enablerepo=elrepo list \*nvidia\*
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
elrepo | 1.9 kB 00:00
Available Packages
kmod-nvidia.i686 295.59-1.el6.elrepo elrepo
[root at www ~]#
Which is exactly what I told it to do with the includepkgs directive, and duplicates what you posted above (re-read your post carefully to see that I'm not spinning you a line, here). Point of fact is that you can't just install the kmod without the X11 driver, as we'll see in a few command sequences below....
[root at www ~]# vi /etc/yum.repos.d/elrepo.repo
[root at www ~]# grep includepkgs /etc/yum.repos.d/elrepo.repo
#includepkgs=kmod-nvidia
[root at www ~]#
Commented it out to double check.....
[root at www ~]# yum --enablerepo=elrepo list \*nvidia\*
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
elrepo | 1.9 kB 00:00
Available Packages
kmod-nvidia.i686 295.59-1.el6.elrepo elrepo
kmod-nvidia-173xx.i686 173.14.31-1.el6.elrepo elrepo
kmod-nvidia-96xx.i686 96.43.20-1.el6.elrepo elrepo
nvidia-x11-drv.i686 295.59-1.el6.elrepo elrepo
nvidia-x11-drv-173xx.i686 173.14.31-1.el6.elrepo elrepo
nvidia-x11-drv-96xx.i686 96.43.20-1.el6.elrepo elrepo
[root at www ~]#
They're all there.....
[root at www ~]# vi /etc/yum.repos.d/elrepo.repo
[root at www ~]# grep includepkgs /etc/yum.repos.d/elrepo.repo
includepkgs=nvidia-x11-drv
[root at www ~]#
Now just nvidia-x11-drv.....
[root at www ~]# yum --enablerepo=elrepo list \*nvidia\*
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
elrepo | 1.9 kB 00:00
Available Packages
nvidia-x11-drv.i686 295.59-1.el6.elrepo elrepo
[root at www ~]#
Which duplicates your original result that does not show the kmod.
[root at www ~]# vi /etc/yum.repos.d/elrepo.repo
[root at www ~]# grep includepkgs /etc/yum.repos.d/elrepo.repo
includepkgs=nvidia-x11-drv kmod-nvidia
[root at www ~]#
Ok, now this is what you really want.....
[root at www ~]# yum --enablerepo=elrepo list \*nvidia\*
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
elrepo | 1.9 kB 00:00
Available Packages
kmod-nvidia.i686 295.59-1.el6.elrepo elrepo
nvidia-x11-drv.i686 295.59-1.el6.elrepo elrepo
[root at www ~]#
Ok, so can I install just the kmod and nothing else? Let's see.....
[root at www ~]# vi /etc/yum.repos.d/elrepo.repo
[root at www ~]# grep includepkgs /etc/yum.repos.d/elrepo.repo
includepkgs=kmod-nvidia
[root at www ~]# yum --enablerepo=elrepo install kmod-nvidia
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
elrepo | 1.9 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kmod-nvidia.i686 0:295.59-1.el6.elrepo will be installed
--> Processing Dependency: nvidia-x11-drv = 295.59-1.el6.elrepo for package: kmod-nvidia-295.59-1.el6.elrepo.i686
--> Finished Dependency Resolution
Error: Package: kmod-nvidia-295.59-1.el6.elrepo.i686 (elrepo)
Requires: nvidia-x11-drv = 295.59-1.el6.elrepo
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root at www ~]#
Nope, so I go back to the includepkgs= line with both.....
[root at www ~]# vi /etc/yum.repos.d/elrepo.repo
[root at www ~]# grep includepkgs /etc/yum.repos.d/elrepo.repo
includepkgs=nvidia-x11-drv kmod-nvidia
[root at www ~]# yum --enablerepo=elrepo install kmod-nvidia
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kmod-nvidia.i686 0:295.59-1.el6.elrepo will be installed
--> Processing Dependency: nvidia-x11-drv = 295.59-1.el6.elrepo for package: kmod-nvidia-295.59-1.el6.elrepo.i686
--> Running transaction check
---> Package nvidia-x11-drv.i686 0:295.59-1.el6.elrepo will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================
Package Arch Version Repository Size
======================================================================================
Installing:
kmod-nvidia i686 295.59-1.el6.elrepo elrepo 4.2 M
Installing for dependencies:
nvidia-x11-drv i686 295.59-1.el6.elrepo elrepo 21 M
Transaction Summary
======================================================================================
Install 2 Package(s)
Total download size: 26 M
Installed size: 98 M
Is this ok [y/N]: n
Exiting on user Command
[root at www ~]#
Works fine.
The includpkgs= line has to include all dependencies, as it really does do what the man page says it does. Try it without the includepkgs= line, or with it commented out, and see if you get different results.
More information about the CentOS
mailing list