DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
You can try dpkg -L | grep linux-image and see if that tells you the exact package.
Hmm, I tried this and the response was "dpkg-query: --listfiles needs at least one package name argument." I then tried dkpg -L linux-image (yeah, I'm just guessing at this point) and it said that linux-image is not installed.
uname -vr will show you the kernel version (-v) and it's release (-r)
Example:
blue -> -v
green -> -r
Hope this helps.
This seems to show a subset of the info from uname -a. What I need is the part in red: 2.6.18.dfsg.1-18etch1. I think the version that I had before the dist-upgrade was 1-16etch1, IIRC from watching the latest one install.
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).
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...
This is indeed (very) off topic. Please search the forum and google first and if that doesn't help start a seperate thread. BTW: Take a look at the ifconfig command
Hmm, I tried this and the response was "dpkg-query: --listfiles needs at least one package name argument." I then tried dkpg -L linux-image (yeah, I'm just guessing at this point) and it said that linux-image is not installed.
You probably have to do dpkg -L 'linux*' instead. Sorry my first command didn't work, I'm not at my debian box...
This is indeed (very) off topic. Please search the forum and google first and if that doesn't help start a seperate thread. BTW: Take a look at the ifconfig command
Sy for getting offtopic, my post can be deleted, if nessecary. It is ifconfig -a in case someone want to know. Thought it might somehow fit into this, sorry again
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).
From uname, the part of the name of my kernel that seems to correspond to 'druuna' in your kernel is '-6-686'. This is unchanged from the kernel I had before the dist-upgrade. There are two kernels in /boot, the other being '-5-686', and both are available from grub. That all looks OK, but I was hoping that there was some way to determine the exact build... certainly Debian puts that in there somewhere?
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.
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 )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.