Files
cheatsheet-tldr/tldr/linux/eclean-kernel
2025-04-20 00:20:58 +00:00

22 lines
524 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# eclean-kernel
> Remove old kernels in Gentoo.
> More information: <https://wiki.gentoo.org/wiki/Kernel/Removal#Using_eclean-kernel>.
- List all kernel files:
`sudo eclean-kernel {{[-l|--list-kernels]}}`
- Remove all kernels except for the two newest ones:
`sudo eclean-kernel {{[-n|--num]}} 2`
- Remove all kernels except for the two newest ones and ask before removal:
`sudo eclean-kernel {{[-a|--all]}} {{[-n|--num]}} 2`