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.

link|improve this question

feedback

2 Answers

up vote 6 down vote accepted

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.

link|improve this answer
Hm, better than strings ;) +1 – Node May 20 '09 at 16:49
Ah, totally forgot about this. Thanks. – Neil May 20 '09 at 16:51
feedback

Try:

strings some_module.ko | grep vermagic

Or use as mentioned by Ian Kelling modinfo.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.