LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-25-2018, 11:39 PM   #1
915086731
Member
 
Registered: Apr 2010
Posts: 144
Blog Entries: 6

Rep: Reputation: 2
What's the difference between two kernel version shown by ‘uname -a’?


I am using debian 9.4, the kernel version shown by 'uname -a' is different, what's the actual kernel version? What does '4.9.82-1+deb9u3' mean?

Code:
Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
'apt-get source linux' can get the source code of current kernel, then I can get original kernel tar file and debian patch.

Code:
$ls     
linux-4.9.82                         linux_4.9.82-1+deb9u3.dsc
linux_4.9.82-1+deb9u3.debian.tar.xz  linux_4.9.82.orig.tar.xz
'linux_4.9.82-1+deb9u3.debian.tar.xz' contains many files, what are them used for? how to patch the it to 'linux_4.9.82.orig.tar.xz ' ?

'linux-4.9.82' is the kernel source folder outputted by 'apt-get source' command, which can be compiled to vmlinux. However, I usually can't debug the crash dump files with the vmlinux, as 'crash' command gives the error message: mismatch version. Should I download 'kernel 4.9.0' from kernel.org instead of 'linux-4.9.82' to debug my current running kernel ?
 
Old 03-26-2018, 01:28 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
several linux kernels can be installed at the same time, but the system only boots into one.
'uname' will only reprt on the currently running kernel.
please read
Code:
man uname
to understand all the info it gives.
 
Old 03-26-2018, 01:39 AM   #3
915086731
Member
 
Registered: Apr 2010
Posts: 144

Original Poster
Blog Entries: 6

Rep: Reputation: 2
Quote:
Originally Posted by ondoho View Post
several linux kernels can be installed at the same time, but the system only boots into one.
'uname' will only reprt on the currently running kernel.
please read
Code:
man uname
to understand all the info it gives.
Yes, I have read man document. 'uname -v' shows kernel version, while 'uname -r' shows kernel release. I can't understand what's the difference.
The OS is newly installed, so it can't exists multi kernel now.
 
Old 03-26-2018, 01:51 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by 915086731 View Post
'uname -v' shows kernel version, while 'uname -r' shows kernel release.
to be honest, i don't fully understand that bit either, but it seems that one refers to your distro's packaged kernel, and the other to the kernel version itself.

Quote:
The OS is newly installed, so it can't exists multi kernel now.
correct.
 
Old 03-27-2018, 05:27 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The files inside the kernel source package are mostly module source code. If you build a kernel, use the source package from the debian repos. The vanilla kernel is missing the debian patches.
 
Old 03-28-2018, 10:25 PM   #6
915086731
Member
 
Registered: Apr 2010
Posts: 144

Original Poster
Blog Entries: 6

Rep: Reputation: 2
https://stackoverflow.com/questions/...own-by-uname-a
 
  


Reply

Tags
crash, debian, debug, kernel, uname



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uname -r reports different kernel version than slackpkg slackist Slackware - ARM 4 12-04-2016 02:48 PM
Different version of kernel and kernel headers shown by uname -r and rpm query nasirjavaid Linux - Newbie 12 10-14-2016 10:34 PM
uname -r reports wrong kernel version branque Fedora 5 09-16-2005 10:26 AM
'uname -a' gives old kernel version j91935 Debian 7 04-12-2004 03:10 PM
uname kernel version sk8ercool2001 Linux - Software 1 04-07-2004 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration