How to delete old Kernel images in Fedora, Centos and Red Hat (RHEL)

How to delete old Kernel images in Fedora, Centos and Red Hat (RHEL)

This post is about how to remove old kernels on CentOS, Fedora or Red Hat (RHEL), the main reason why you want remove kernel is limited disk space on server, this task is easy. For remove i use yum-utils package.

run this commnad to display the current verison of kernel – in my case Linux 4.16.5-200.fc27.x86_64

to list all kernel images installed on your system use this command (3 kernel images)

as i mentioned before, to remove old kernel images i use yum-utils package, which you need install on your server

to remove old kernel images use package-cleanup command –count=2 mean that you have only 2 kernel images after start the remove process.

after remove i have only 2 kernel images 🙂

Remove old Kernels automatically

set the kernel limit in the yum.conf – installonly_limit=2 = only 2 kernel images 

(Visited 38 times, 1 visits today)

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *