configk(1)
β¨ configk β bestie edition π
okay so real talk, this page is from the General Commands Manual and the star of the show is configk (that's configk(1) if you're being fancy at a party). sit down, grab a snack, we're gonna edit kernel configs together π
πΈ NAME πΈ
configk β an easy way to edit kernel configuration files and templates. yes bestie, easy. it's giving "finally".
π SYNOPSIS π
configk [OPTIONS] <source-directory>
π¦ DESCRIPTION π¦
so the config-kernel program helps you edit kernel configuration files (.config) and template files. it recursively reads the Kconfig files from a given source directory and builds a tree structure of CONFIG options. that tree can be traversed to query an option's attributes, or to set/reset them. and it can also validate the kernel's .config file by checking an option's value and its dependencies. it's a whole vibe check for your config, no cap.
a typical CONFIG entry in a Kconfig file begins with a config keyword on a new line, and its attributes go on the following lines, indented by the tab (\t) character:
config <OPTION_NAME>
<\t>Attribute-1
<\t>Attribute-2
...
<\t>Attribute-n
you can query, enable, disable or toggle CONFIG options either via a command line switch or via an $EDITOR program. literally pick your fighter π
π OPTIONS π
the configk program supports the following options, and yes, we're listing every single one, bestie:
-a,--srcarch<arch>β source architecture tree to read/follow, default:x86-c,--check<file>β check configs against the source tree-C,--configβ show output as a config file-d,--disable<option>β disable config option-e,--enable<option>[=val]β enable config option with a given value-E,--edit<file>β edit config file with an$EDITORprogram, default:vi-h,--helpβ show help-s,--show<option>β show a config option entry-t,--toggle<option>β toggle an option betweeny&m-v,--versionβ show version-V,--verboseβ show verbose output
π§ ENVIRONMENT π§
configk reads the following environment variables:
EDITORβ Editor program to use to open a file, default:viSRCARCHβ Source architecture tree to read/follow, default:x86TMPDIRβ Directory where temporary files are created, default:/tmp
π BUG(s) π
not me having to say this, but please open an issue at: https://github.com/pjps/config-kernel/issues
π SEE π
https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html
π AUTHOR π
Prasad Pandit <pjp@fedoraproject.org> β icon behavior, honestly π«Ά
and that's the whole page bestie, configk(1) out here in the General Commands Manual section, living its best life. go forth and toggle some options ππΈβ¨
π¦ where this page comes from
- fedora 43: config-kernel 0.3-4.fc43 Β· GPL-2.0-or-later
- fedora 44: config-kernel 0.3-6.fc44 Β· GPL-2.0-or-later
- Copyright (C) 2023-2024 Red Hat Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms