In attempting to find the version of Debian I am running, I have run several commands; the confusing thing is, nearly all of these commands return different results.
For instance, in /proc/version
I find:
Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.63-2+deb7u2
I can tell 3.2.0-4-686-pae
is the kernel version, this is clear to me. But the rest of the output seems to give two different Debian version numbers of 4.6.3-14
and 3.2.63-2+deb7u2
(the latter also being output from uname
).
Moreover, when I look in /etc/debian_version
, it tells me I'm using version 7.7
.
Why am I getting so many different Debian versions listed in these places, and what is the difference between the numbers?
/proc/config.gz
this should also list a kernel version at the very beginning. Alsofile /boot/vmlinuz-linux
can give you some information on some linux image on disk. – michas Jan 03 '15 at 13:183.2.0-4-686-pae
because the last version is kinda bogus. – kirelagin Jan 03 '15 at 13:29/proc/version
is coming straight from the kernel. I think the last string is actually the machine it was built on. – goldilocks Jan 03 '15 at 13:43man proc
and added an answer. – goldilocks Jan 03 '15 at 13:56hardinfo
. With this tool available you don't need to memorize any commands for retrieving system information. – August Karlstrom Jan 03 '15 at 16:50