• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Removing Old Kernels

June 10, 2019

How to check which kernel is running on your system

uname -sr

uname -sr

List all kernels installed on the system.

rpm -q kernel

rpm -q kernel

Removing old kernels using package-cleanup. This keeps 2 kernels on the system.

yum install yum-utils
package-cleanup --oldkernels --count=2

yum install yum-utils package-cleanup --oldkernels --count=2

Filed Under: Linux Tagged With: check, kernel, remove

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023