Thank you Pete for the very insightful answer! This has worked like a charm - On Wed, Feb 7, 2018 at 10:16 AM, Pete Biggs <pete@xxxxxxxxxxxx> wrote: > > In fact there are a number of tools to help you. By default yum keeps > 5 versions of old kernels (which is usually too many for the default > /boot size - good joined-up thinking there!), that number is specified > in /etc/yum.conf as "installonly_limit=5" - change that to a suitable > number for you, personally I use '3', some people have '2' - don't put > it at '1' because then you'll not be able to use an old version to boot > in to in emergency. > > The package yum-utils has the package-cleanup command to deal with > various yum issues, including sorting out old kernels. Do > > package-cleanup --oldkernels --count=3 > > to clean everything to do with old kernels leaving 3 versions on your > system. > I had: /dev/md1 488M 428M 34M 93% /boot Then I after running # package-cleanup --oldkernels --count=3 Loaded plugins: fastestmirror --> Running transaction check ---> Package kernel.x86_64 0:3.10.0-693.2.2.el7 will be erased ---> Package kernel.x86_64 0:3.10.0-693.5.2.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: kernel x86_64 3.10.0-693.2.2.el7 @updates 59 M kernel x86_64 3.10.0-693.5.2.el7 @updates 59 M Transaction Summary ================================================================================ Remove 2 Packages Installed size: 119 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : kernel.x86_64 1/2 Erasing : kernel.x86_64 2/2 Verifying : kernel-3.10.0-693.5.2.el7.x86_64 1/2 Verifying : kernel-3.10.0-693.2.2.el7.x86_64 2/2 Removed: kernel.x86_64 0:3.10.0-693.2.2.el7 kernel.x86_64 0:3.10.0-693.5.2.el7 Complete! I've ended up with comforting /dev/md1 488M 279M 184M 61% /boot Have a nice day! Alex _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos