HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

genkernel — Gentoo Linux utility to compile and install kernels. More information: <https://wiki.gentoo.org/wiki

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgentooandcompileclilinuxgenkernelutility
linux

Problem

How to use the genkernel command: Gentoo Linux utility to compile and install kernels. More information: <https://wiki.gentoo.org/wiki/Genkernel>.

Solution

genkernel — Gentoo Linux utility to compile and install kernels. More information: <https://wiki.gentoo.org/wiki/Genkernel>.

Automatically compile and install a generic kernel:
sudo genkernel all


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

Code Snippets

Automatically compile and install a generic kernel

sudo genkernel all

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

Context

tldr-pages: linux/genkernel

Revisions (0)

No revisions yet.