Contents
How do I remove old kernel in RHEL 6?
Remove old unused kernel automatically using package-cleanup – Using package-cleanup command which is a part of yum-utils package we can uninstall any number of old kernels automatically.
How do I uninstall devel kernel?
Using package-cleanup command which is a part of yum-utils package we can uninstall any number of old kernels automatically. As an example using –oldkernels –count=2 option with package-cleanup command the command will remove all unused kernel while keeping last three most recent kernel versions installed.
How to remove old kernels without specifying the version?
Never use YUM or DNF to remove old kernel packages without specifying the kernel version. We always need at least one kernel package installed on the server while yum/dnf may remove all the installed kernels if you don’t specify the version.
Is it safe to remove old kernels from CentOS?
It should be perfectly safe to remove those old kernels. If one would be running one of the old kernels, then it would be kept and one would have three, “two latest and the current”, after cleanup. The “package-cleanup –oldkernels” does a bit more though; it removes also kernel-devel etc packages for kernel versions that do not remain installed.
How to uninstall old kernels in yum utils?
Using package-cleanup command which is a part of yum-utils package we can uninstall any number of old kernels automatically. As an example using –oldkernels –count=2 option with package-cleanup command the command will remove all unused kernel while keeping last three most recent kernel versions installed.
How to remove old kernels from the boot partition?
The package-cleanup command removes old kernels that you no longer need. This should free up enough space on the /boot partition. After that you can do a “yum update” to update your system. Since you have very little free space left on /boot, I am worried that the last kernel that was installed may not have been installed correctly.