Boot partition is full

From Klaus' wiki
Revision as of 08:18, 6 March 2017 by Klaus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Do the following to keep just the last 2 kernels on your system, to keep /boot clean

Edit /etc/yum.conf and set the following parameter

installonly_limit=2

This will make your package manager keep just the 2 last kernels on your system(including the one that is running)

Then install yum-utils:

]$ yum install yum-utils

Finally make an oldkernel cleanup:

]$ package-cleanup --oldkernels --count=2

Done. This will erase in a good fashion the old kernels, and, keep just the last 2 of them for the next upgrades.