1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:22:07 +02:00
tldr/pages/linux/genkernel.md
2021-08-15 19:59:09 +02:00

24 lines
656 B
Markdown

# 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|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`