commands.sh

genkernel

linux

Gentoo Linux utility to compile and install kernels.

More info →

Examples (5)

Automatically compile and install a generic kernel

Build and install the bzImage, initramfs, kernel, or ramdisk only

sudo genkernel bzImage|initramfs|kernel|ramdisk

Apply changes to the kernel configuration before compiling and installing

sudo genkernel --menuconfig all

Generate a kernel with a custom name

sudo genkernel --kernname=custom_name all

Use a kernel source outside the default directory `/usr/src/linux`

sudo genkernel --kerneldir=path/to/directory all
made by @shridhargupta | data from tldr-pages