Remove old Kernels from /boot safely

Boot partition full? It’s most likely old kernels, here’s some simple commands to clean up /boot by safely removing old kernels with yum

# Install yum-utils (if they aren’t already installed)
yum install yum-utils
# Cleanup old kernels and don’t keep more than 2
package-cleanup –oldkernels –count=2

You can actually make this a yum default by configuringĀ /etc/yum.conf as follows

installonly_limit=2

No votes yet.
Please wait...

1 thought on “Remove old Kernels from /boot safely”

  1. Europe, and in Ancient Russia

    No votes yet.
    Please wait...

Leave a Comment

Your email address will not be published. Required fields are marked *