On Mon, Aug 22, 2011 at 11:27:10AM -0600, Bob Proulx wrote: > tags 638878 + moreinfo > thanks > > Touko Korpela wrote: > > Would it be possible to report Debian kernel version in uname > > output? Maybe it can be added to "kernel version" string, uname -v > > (now it's "#1 SMP Wed Aug 17 05:07:22 UTC 2011". > > This information is present in /proc/version and could be in uname too. > > Exactly what information is it precisely that you wish included in > 'uname' output? Because uname already includes the kernel version > information. > > $ uname -a > Linux example 3.0.0-1-amd64 #1 SMP Sun Jul 24 02:24:44 UTC 2011 x86_64 > GNU/Linux
It shows now only Debian package name (3.0.0-1-amd64 part), not version (3.0.0-2). > > I don't yet know what information you want to access from > /proc/version but since accessing specific information from > /proc/version is intrinsically non-portable it seems bad to hack it > into 'uname' making it more non-portable. And since it is trivial to > read it from /proc/version directly there doesn't seem to be any need > to hack this into 'uname'. Why not read it from /proc/version directly? It's simpler if you don't need to find data from many places. I think "uname -a" should tell version of kernel package used if that information is available. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

