LinuxCommandLibrary

genkernel

genkernel

TLDR

Automatically compile and install a generic kernel

$ sudo genkernel all
copy


Build and install the bzImage|initramfs|kernel|ramdisk only
$ sudo genkernel [bzImage|initramfs|kernel|ramdisk]
copy


Apply changes to the kernel configuration before compiling and installing
$ sudo genkernel --menuconfig all
copy


Generate a kernel with a custom name
$ sudo genkernel --kernname=[custom_name] all
copy


Use a kernel source outside the default directory /usr/src/linux
$ sudo genkernel --kerneldir=[path/to/directory] all
copy

Copied to clipboard