[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel module version from source/package without downloading?



On Mon, Jul 01, 2013 at 04:05:13PM +0200, Helmut Wollmersdorfer wrote:
> Hi,
> 
> how can I find out the version number of a particular kernel module
> without downloading, without installing, without booting, from
> 

Taking, as an example, uinput:

> - the kernel source repository

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/misc/uinput.c#n880
 That is, go to https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree and delve down to where your module source is. Look for "MODULE_VERSION"

> - the debian source package

http://sources.debian.net/src/linux/3.9.8-1/drivers/input/misc/uinput.c#L880
 That is, go to http://sources.debian.net/src/linux, pick the package
version you want, delve down to where your module source is and look for
MODULE_VERSION again.

> - the debian binary package

This SHOULD match the previous entry. The only reason I can think of why
it wouldn't would be some magic in debian/rules that's mangling the
version (a patch, for example).

> - the running kernel, or the loaded modules

# modinfo uinput|grep '^version'
version:        0.3

> 
> I.e. I would like the version number of a kernel module (e.g. drbd,
> megaraid_sas, igb) before deciding to download, compile, or install.

HTH.

Attachment: signature.asc
Description: Digital signature


Reply to: