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

eclean-kernel — Remove old kernels in Gentoo. More information: <https://wiki.gentoo.org/wiki/Kernel/Removal#Using_e

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

Problem

How to use the eclean-kernel command: Remove old kernels in Gentoo. More information: <https://wiki.gentoo.org/wiki/Kernel/Removal#Using_eclean-kernel>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/eclean-kernel

Revisions (0)

No revisions yet.