RHEL Remove Old Kernels

From UNIX Systems Administration
Revision as of 01:44, 3 November 2021 by Michael Kohler (talk | contribs) (Created page with "== CentOS 7 == === Remove Old Kernels === # List all Repositories #: <tt>'''# package-cleanup --oldkernels --count=<#>'''</tt> #: ex. <tt>'''# package-cleanup --oldkernels --c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CentOS 7

Remove Old Kernels

  1. List all Repositories
    # package-cleanup --oldkernels --count=<#>
    ex. # package-cleanup --oldkernels --count=1

CentOS 8

Remove Old Kernels

  1. List all Repositories
    # dnf remove --oldinstallonly --setopt install_only_limit=<#> kernel
    ex. # dnf remove --oldinstallonly --setopt install_only_limit=1 kernel