Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded the source code using the following command:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git 

This gives me a folder named : ubuntu-precise.

But what is its version? How do I know this?

By the way my running kernel is:

#lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:   precise

Also:

3.8.0-38-generic #56~precise1-Ubuntu SMP Thu Mar 13 16:23:47 UTC 2014 i686 i686 i386 GNU/Linux

changelog is located at many places

./arch/arm/lib/changebit.S
./debian.master/changelog.historical
./debian.master/changelog
./drivers/staging/rtl8192u/changes
./ubuntu/omnibook/debian/changelog

So I checked in debian.master/changelog These are the first few lines:

linux (3.2.0-61.92) precise; urgency=low

  [ Kamal Mostafa ]

  * Release Tracking Bug
    - LP: #1300455

  [ Upstream Kernel Changes ]
share|improve this question
    
Try looking into Changelog –  Danatela Apr 22 at 6:05
    
changelog is at many places, I update my question –  user2799508 Apr 22 at 6:11
    
Probably the 3rd. –  Danatela Apr 22 at 6:13
    
the top line shows: linux (3.2.0-61.92) precise, is this the version of the source code? –  user2799508 Apr 22 at 6:15
    
Welcome to Ask Ubuntu. Please, could you put some of your time to read What should I do when someone answers my question? –  Sylvain Pineau Apr 23 at 7:23

2 Answers 2

It's in the first four lines of the top level Makefile:

1 VERSION = 3
2 PATCHLEVEL = 2
3 SUBLEVEL = 55
4 EXTRAVERSION =
share|improve this answer

As Sylvain says, the Vanilla version is in the Makefile. But if you want to know package version, it is better to look into changelog. It's the common Ubuntu practice.

For example, pidgin/ChangeLog:

Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul

version 2.10.9 (2/2/2014):
    XMPP:
    * Fix problems logging into some servers including jabber.org and
      chat.facebook.com. (#15879)

From the file we can know that it's version is 2.10.9

And in your case, the linux (3.2.0-61.92) precise is the version of sources.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.