RHEL Remove Old Kernels
Jump to navigation
Jump to search
RHEL 7/CentOS 7
Remove Old Kernels
- List all Repositories
- # package-cleanup --oldkernels --count=<#>
- ex. # package-cleanup --oldkernels --count=1
RHEL 8/CentOS 8
Remove Old Kernels
- List all Repositories
- # dnf remove --oldinstallonly --setopt install_only_limit=<#> kernel
- ex. # dnf remove --oldinstallonly --setopt install_only_limit=1 kernel