LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-16-2008, 04:52 PM   #1
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Rep: Reputation: 15
take out number after kernel version


This should be a quick quesiton. How do you take out the number after the kernel version displayed in uname? Mine looks like this:

Linux darkstar 2.6.26.5 #3 PREEMPT Tue Sep 16 16:42:36 EDT 2008 i686 Intel(R) Pentium(R) M processor 1.20GHz GenuineIntel GNU/Linux

Before it was #13... I did a bunch of recompiles fine-tuning everything. This kernel (2.6.26.5) I just got and it is indeed the third one I compiled (first time I forgot to enable WEP, second I removed PCMCIA, and third I did to try to get rid of the #2 that was present at the time). Is there something I need to do when compiling to get rid of the number? I tried a make clean but that did not affect it. Thanks
 
Old 09-16-2008, 07:38 PM   #2
verndog
Member
 
Registered: Oct 2007
Posts: 107

Rep: Reputation: 18
How did you compile it? What was the revision name you gave when you compiled it. I assume you mean the 'uname -r' output
 
Old 09-17-2008, 09:31 AM   #3
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
I extracted the source to /usr/src/linux-2.6.26.5/
then did the following

make xconfig
make bzImage
cp arch/i386/boot/bzImage /boot/
cp System.map /boot/
make modules
make modules_install
edit /etc/lilo.conf
lilo -v
reboot

uname -a has the number in it, uname -r does not have it. I did not give it a revision name as far as I know.

Last edited by pauledwards03; 09-17-2008 at 09:40 AM.
 
Old 09-18-2008, 08:27 AM   #4
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
bump.. anybody?
 
Old 09-18-2008, 09:47 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,955

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
The number you mean, is stored in a file called .version and every time you recompile your kernel it's increased by 1.
If you want to remove it completely you should mess with the Makefile. Look for .version in Makefile to see how it's done.
You can always put a "0" in .version before recompiling, so every time your kernel will be version 1

Regards
 
Old 09-18-2008, 10:30 AM   #6
pauledwards03
Member
 
Registered: Dec 2006
Distribution: Slackware 12.1
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks bathory. Sure enough .version has 3 in it. I will recompile later and see but I have confidence it will work. Thanks again.
 
  


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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
what's the version number of kernel for FC5 release? xqkp77 Fedora 2 07-25-2007 12:30 PM
IS Firmware version and revision number are same? manishpatidar Linux - Software 0 03-06-2006 01:41 AM
where is slackware version number? davidsrsb Slackware 3 09-08-2004 06:38 AM
How do I specify a version number to use? Seventh Linux - Newbie 1 08-26-2004 05:29 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration