Clear Out Old Kernels

From Tech Wiki
Revision as of 10:33, 28 April 2016 by Adam.birds (talk | contribs) (Created page with "'''To clear out the old kernels from a CentOS box use the following commands:''' <pre> yum install yum-utils package-cleanup --oldkernels --count=2 </pre> '''To stop the /bo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To clear out the old kernels from a CentOS box use the following commands:

yum install yum-utils
package-cleanup --oldkernels --count=2

To stop the /boot partition from filling again do the following

add installonly_limit=2 to /etc/yum.conf