Difference between revisions of "Boot partition is full"

From Klaus' wiki
Jump to: navigation, search
(Created page with '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 you…')
(No difference)

Revision as of 08:18, 6 March 2017

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.