LinuxCentos7 cleaning boot partition

Centos7 cleaning boot partition

Boot partition might be full as it stores old kernels etc.

To clean it up and store only the latest 2 kernels do the below

Take a backup of your /boot partition somewhere first

edit /etc/yum.conf and set installonly_limit=2 

# install yum utilities 
yum install yum-utils

# cleanup old kernels 
package-cleanup --oldkernels --count=2

Categories: Linux

Comments

No Comments Yet. Be the first?

Post a comment

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