Files
cheatsheet-tldr/tldr/linux/genkernel
2025-12-22 00:22:43 +00:00

30 lines
754 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`