LinuxCommandLibrary

eclean-kernel

TLDR

List all kernel files

$ sudo eclean-kernel -l
copy
Keep only two newest kernels
$ sudo eclean-kernel -n 2
copy
Remove kernels with confirmation
$ sudo eclean-kernel -a -n 2
copy

SYNOPSIS

eclean-kernel [options]

DESCRIPTION

eclean-kernel removes old kernels in Gentoo Linux. It cleans up kernel images, modules, and related files while preserving a specified number of recent kernels.
Part of the eclean-kernel package.

PARAMETERS

-l, --list-kernels

List all installed kernels
-n, --num n
Number of kernels to keep
-a, --all
Ask before each removal
-p, --pretend
Show what would be removed
--no-mount
Don't mount /boot if unmounted

CAVEATS

Gentoo-specific. Always keep at least one working kernel. The currently running kernel is protected.

SEE ALSO

eclean(1), emerge(1)

Copied to clipboard