Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> Linux >> RHEL >> How to remove older kernels from the system

## List the kernel versions installed

rpm -q kernel


## Ensure you have yum-utils package installed

yum install -y yum-utils


## Clean up

## For RHEL 7

## count is the number of kernel versions to leave behind. In the following example we keep 2 versions

package-cleanup --oldkernels --count=2



## For RHEL 8

dnf remove --oldinstallonly --setopt installonly_limit=2 kernel

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]