LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   uname's output (https://www.linuxquestions.org/questions/linux-newbie-8/unames-output-4175491570/)

tranphat 01-17-2014 02:22 AM

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?

kaz2100 01-17-2014 02:51 AM

Hya

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

cheers

tranphat 01-17-2014 03:11 AM

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.

chrism01 01-17-2014 03:53 AM

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 ...

druuna 01-17-2014 04:05 AM

chrism01's guess is correct.

Package details: linux-source-3.2 (3.2.51-1)

tranphat 01-17-2014 05:16 AM

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?

druuna 01-17-2014 06:23 AM

Have a look here: Understanding uname -a: difference between #1 SMP and #3 SMP

tranphat 01-19-2014 08:03 PM

Hi druuna,

Thanks you. I understand it now.

druuna 01-20-2014 01:47 AM

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


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