Linux – How to check the version of a *.ko kernel module in Linux

kernellinux

I know you can do:

sudo modprobe -v some_module

to check the version of /lib/modules/.../some_module.ko, but I'd still like to be able to check the version of any arbitrary kernel module that's not necessarily going to be loaded by modprobe.

Best Answer

modinfo(8)
modinfo - program to show information about a Linux Kernel module

Simply,

modinfo module-file

General tip: At the bottom of a manpage and there is a section called "See Also". For modprobe, it lists modinfo. That section can be extremely useful.