LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2014, 02:22 AM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 73

Rep: Reputation: Disabled
uname's output


Hi all,

When I type uname -a in the console screen. It shows:

Linux debian01 3.2.0-4-486 #1 Debian 3.2.51-1 i686 GNU/Linux

According to the help of command uname:
3.2.0-4-486 is kernel release (uname -r)
3.2.51-1 is kernal version (uname -v)

What is the difference between kernel release vs kernel version? I think that the latest release means latest version. So, it should display the same.
Doing some search in google, the result of uname -a is slightly different

Linux admin1.vslitc.com 3.2.2 #2 SMP Tue Feb 21 06:22:12 UTC 2012 i686 GNU/Linux

In this example, it does not show the kernel version number???

What about #1 and #2???

I'm very confused. Could you help me clarify this?
 
Old 01-17-2014, 02:51 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch buster
Posts: 1,614

Rep: Reputation: 97
Hya

1. try "man uname"
2. try "uname -s". "uname -n" .....
3. see what happens.

cheers
 
Old 01-17-2014, 03:11 AM   #3
tranphat
Member
 
Registered: Dec 2013
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hi kaz2001,

Thank for reply.

This is output:

uname -s: Linux


uname -n: debian01

man uname:

....
-r, --kernel-release
print the kernel release

-v, --kernel-version
print the kernel version
......

I know that -r and -v meaning. But I'm confused about its output:

3.2.0-4-486 is kernel release (uname -r)
3.2.51-1 is kernal version (uname -v)

I want to know why there are 2 different numbers for 1 kernel on 1 system? I think they should be the same.
 
Old 01-17-2014, 03:53 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Interestingly, on Centos I get
Code:
Linux boole 2.6.32-431.3.1.el6.centos.plus.x86_64 #1 SMP Fri Jan 3 19:15:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
I would guess that with Debian, the 3.2.0... is the original kernel version from kernel.org and 3.2.5... is Debian's patched version num.
Note the same nums at the start ...
 
Old 01-17-2014, 04:05 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
chrism01's guess is correct.

Package details: linux-source-3.2 (3.2.51-1)
 
Old 01-17-2014, 05:16 AM   #6
tranphat
Member
 
Registered: Dec 2013
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hi,

Thank you for your reply. I still have 1 small question. As you see the output of uname

Quote:
Linux admin1.vslitc.com 3.2.2 #2 SMP Tue Feb 21 06:22:12 UTC 2012 i686 GNU/Linux
Quote:
Linux boole 2.6.32-431.3.1.el6.centos.plus.x86_64 #1 SMP Fri Jan 3 19:15:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Could you tell me the meaning of #1 and #2?

One more information, in the boot screen, I only see the 3.2.0-4-486, not 3.2.51-1. As I know, it should display 2 lines: 3.2.51-1 and 3.2.0-4-486 for choosing.By default, the higher version is in first order and is selected automatically. Do you have any idea about this case?

Last edited by tranphat; 01-17-2014 at 05:28 AM. Reason: correct the quote
 
Old 01-17-2014, 06:23 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Have a look here: Understanding uname -a: difference between #1 SMP and #3 SMP
 
Old 01-19-2014, 08:03 PM   #8
tranphat
Member
 
Registered: Dec 2013
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hi druuna,

Thanks you. I understand it now.
 
Old 01-20-2014, 01:47 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
You're welcome

BTW: Can you put up the [SOLVED] tag.
- above the first post -> Please Mark this thread as solved if you feel a solution has been provided.
- -or- -
- first post -> Thread Tools -> Mark this thread as solved
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 output issue? linuxunix Linux - Newbie 4 04-21-2010 09:21 AM
uname output vkmgeek Linux - Newbie 2 04-25-2008 06:55 PM
uname output vkmgeek Linux - General 4 03-13-2008 05:04 PM
change output of `uname -a` introuble Linux - General 7 08-03-2006 05:15 AM
changing uname -r output kesari Red Hat 2 11-04-2004 05:20 AM


All times are GMT -5. The time now is 05:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration