Could I remove the redundant CentOS kernel in my droplet?

Posted April 23, 2014 2.7k views
I found that there are several redundant CentOS kernel installed in my droplet, but currently I only use the latest one, so is it safe to remove the outdated kernel from my droplet?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
The package-cleanup command from yum-utils can help with that:

yum install yum-utils
package-cleanup --oldkernels
may i use the command: sudo yum remove kernel.2.6.32-431.* instead?
@pirlow: You could, just make certain that you aren't removing the kernel that you are using. "package-cleanup --oldkernels" does some basic sanity checks to keep you from running into trouble.