Find the "kmod-nvidia" module corresponding to your latest Fedora Linux kernel.
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
kmod_nividia_seeker.pl

README.md

What is this?

A simple script to find the "kmod-nvidia" module corresponding to your latest Fedora Linux kernel that you just installed via 'yum update'.

Why this script?

This was written because I couldn't be arsed to find out the name of the 'kmod-nvidia' kernel corresponding to the latest kernel on my machine every time Fedora rolls out a new kernel (and I'm not using the statically linked nvidia kernel module for some reason).

Example output when run on the command line:

Kernel 3.8.11-100.fc17.x86_64 (most recent)
  Block   : 3
  Major   : 8
  Minor   : 11
  Fix     : 100
  Distro  : fc17
  Arch    : x86_64
  ...No nvidia kernel module found through 'yum' for '3.8.11-100.fc17.x86_64' -- looks like you are out of luck!
Kernel 3.8.8-100.fc17.x86_64
  Block   : 3
  Major   : 8
  Minor   : 8
  Fix     : 100
  Distro  : fc17
  Arch    : x86_64
  ...Nvidia kernel module is installed : kmod-nvidia-3.8.8-100.fc17.x86_64-304.88-1.fc17.3.x86_64
Kernel 3.8.4-102.fc17.x86_64 (least recent)
  Block   : 3
  Major   : 8
  Minor   : 4
  Fix     : 102
  Distro  : fc17
  Arch    : x86_64
  ...Nvidia kernel module is available but not yet installed : kmod-nvidia-3.8.4-102.fc17.x86_64.x86_64

See also:

See the FedoraProject Cuda page on why you might want to use the nvidia driver in the first place: to run CUDA code.

License?

The MIT License should do (but this is just a short code snippet, right?)

Bugs!

Tell me about any.