LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-23-2005, 10:26 PM   #1
LQ Newbie
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
kernel compile options

does anybody know a way to check the compile options of a kernel after the compilation?

thanks in advance
Old 02-23-2005, 10:53 PM   #2
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
open the .config file in a text editor
run make menuconfig (or xconfig etc..) from running kernels source tree root.

Both these options assume you haven't changed and saved anything new in the config since the last full compile.
Old 02-23-2005, 10:54 PM   #3
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 31
the config options are stored in a file called .config in the kernel source directory. Like above poster said easiest way is through make menuconfig or make xconfig.
Old 02-23-2005, 11:05 PM   #4
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
There's also an option (at least in 2.6) for the kernel to display its gzipped config file in /proc/config.gz. It's not enabled by default, though, and no distro I've seen enables it.
Old 02-24-2005, 12:01 AM   #5
LQ Newbie
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
kernel options

i should've mentioned that this is an out-of-the-box redhat 8 installation, sorry. i can't locate any .config file.
any idea if the 2.4.18-14 kernel shipped with redhat 8 was compiled with "IP: advanced router" and "IP: policy routing" options? the only other option would be to compile a 2.6 kernel.
any advice?

thanks again


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
Dell 600m Kernel Compile Options giddyupman Slackware 0 10-21-2004 11:17 AM
./Compile options for Slackware redjokerx Slackware 6 08-31-2004 02:33 PM
Default options for kernel compile... guddler Mandriva 2 03-19-2004 05:12 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM
Kernel compile options Sammy2ooo Linux - General 4 11-26-2003 07:43 AM

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration