LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-14-2012, 09:48 AM   #1
g_p_linux
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Rep: Reputation: Disabled
Where is my kernel version located under Linux?


Hello,

the /prov/version command identifies the kernel version that is currently running.

Code:
[/] cat /proc/version
Linux version 2.6.35.7-ver2
But,where is that kernel located?

Cause under /usr/src/ folder, there is only a folder named
"linux-2.6.35.7" and not "linux-2.6.35.7-ver2"

Thanks, in advance
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-14-2012, 09:52 AM   #2
celthunder
Member
 
Registered: Feb 2009
Location: Newton, WI
Distribution: Arch
Posts: 84

Rep: Reputation: 8
in /boot usually
 
2 members found this post helpful.
Old 01-14-2012, 09:53 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Look in the /usr/src/linux-2.6.35.7/Makefile file
(EXTRAVERSION)

(edit)
or in kernel config file (CONFIG_LOCALVERSION)
/usr/src/linux-2.6.35.7/.config

Last edited by Cedrik; 01-14-2012 at 09:55 AM.
 
1 members found this post helpful.
Old 01-14-2012, 09:59 AM   #4
g_p_linux
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hello and thanks for replying,

it's not in /boot folder.
Then i did:

nano /usr/src/linux-2.6.35.7/Makefile

But it's a huge file, how can i find the path i need?
Is there any keyword in order to search for it and find the location?

Also, i didn't find any file named config

/usr/src/linux-2.6.35.7/.config

What shall i do next?

Thanks, in advance
 
Old 01-14-2012, 10:12 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
The .config will be in /boot, with the kernel. It's the file used to configure the build/compilation of the kernel. That -ver2 is tagged on to the version number when building (like Cedrik mentioned: localversion).
 
2 members found this post helpful.
Old 01-14-2012, 10:37 AM   #6
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
Could a moderator please sticky and close this thread?
 
Old 01-14-2012, 11:15 AM   #7
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
It's more typical on LQ for you to just mark your thread as 'SOLVED' (there's a link at the top of the page) - that way people know your thread contains a solution, and people can look at the post marked as most helpful if they want to jump to a solution.

EDIT: Sorry, just realised redhead277 wasn't the OP. Um... In that case why do you want this thread closed?

Thanks,
 
Old 01-15-2012, 08:39 PM   #8
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
usually ib /boot and it's not usually called Linux but something like vmlinuz
 
1 members found this post helpful.
Old 02-01-2012, 03:25 PM   #9
g_p_linux
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lisle2011 View Post
usually ib /boot and it's not usually called Linux but something like vmlinuz
Thanks, it was in /boot folder and named as "vmlinuz"
 
  


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
Problem installing ndiswrapper as the kernel version cannot be located. doublemac Linux - Newbie 6 01-12-2011 09:05 PM
Where are kernel modules located? wessam82 Linux - General 3 05-26-2007 04:33 PM
Where is the linux kernel source code located in mandrake 10? SGFHK321 Linux - Newbie 6 07-12-2004 11:52 PM
Where are sndconfig and isapnp tools located in RHEL3 (ws) kernel version 2.4.21-4 ( k_c_kumar Red Hat 8 02-04-2004 12:57 PM
where should kernel be located killer_bunny Linux - Newbie 14 12-21-2003 07:10 PM


All times are GMT -5. The time now is 12:17 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