How to determine which kernel version I'm using?
Last night, I did a dist-upgrade, which installed Linux version 2.6.18.dfsg.1-18etch1. This version fixed a vulnerability (DSA-1494-2) which had been reported on Feb 11. Then when I looked at the latest vmlinuz, the datestamp was Feb. 10.
I looked for a command to display the kernel version, and all I could find was uname, which just reports "Linux debian 2.6.18-6-686." Is there another command that will report the exact version number, or is there some other way to find it? |
You can try dpkg -L | grep linux-image and see if that tells you the exact package.
|
Hi,
uname -vr will show you the kernel version (-v) and it's release (-r) Example: Quote:
green -> -r Hope this helps. |
Actualy, this is a little bit offtopic, but: how can I determine, which IP adresse my dhcp router gave me during the current session? Guess this might be as easy as asking for the kernel version...
|
Quote:
|
Quote:
|
Hi,
The output of uname -r (which is indeed a subset of -a) shows this (my kernel): 2.6.22.druuna The part in blue is what you are highlighting, but this is something that can be set during kernel compilation and not all people put the correct/complete info there. If this is the case then there is no command to check the actual build. You could check to see if the appropriate kernel is booted (check grub or lilo file) and also check what is present in /boot (new kernel should be present, older kernels could be present). |
Hi,
Quote:
|
Quote:
|
Quote:
|
Quote:
The only thing that seems odd is the datestamp. Since the notification on debian.org said that the .1-18etch1 kernel fixed a vulnerability that was reported on Feb 11, and aptitude seemed to install the new kernel OK, I don't understand why the datestamp on the newest kernel is Feb 10. I probably don't have anything to worry about, but now that I started this I want to see it through. |
I just had a thought, maybe you can check the kernel config file in /boot. Just read through it with more as the relevant information should be near the top of the config file.
|
What about this (untested, since I'm not at my Debian machine)?
Code:
apt-cache policy linux-image-`uname -r` |
that should be a direct hit..
Code:
it-etch:~# apt-cache policy linux-image-`uname -r` |
You got caught with the way Debian allows you to keep your system up to date: it has a general linux-image package, which depends on the latest available kernelpackage. In my case, it's called 'linux-image-amd64' as I have 64 bit AMD hardware (and 64 bit Debian Etch system). Yours could be like 'linux-image-6-686' or something similar.
I suggest to start Synaptic or aptitude and enter 'linux-image' as a search string. Look around in the results, the packages installed will show up. (use the n key in aptitude to cycle through the results) Btw, you did update the package list first, did you? ;) Click on 'reload' in Synaptic or press u in aptitude. Then click 'mark all upgrades' in Synaptic or U (yes, capital u) in aptitude to check for updates. In Synaptic, click 'apply' or in aptitude: press g twice. Now your system updates itself :) (I know you'll probably already know this, but new users probably not ;)) |
All times are GMT -5. The time now is 08:05 PM. |