How to Free Up Space in /boot on CentOS Server

By default the /boot partition is quite small, in some cases it could be only a few megabytes. If this is the case with when you try to update your kernel, you could get an error complaining about not enough free space on /boot.
Here's an easy way on how to free up some space so that you could complete your kernel update as normal.
- Install yum-utils
yum install yum-utils
- Now we can clean some old kernel packages, to be on the safe side I would recommend keeping the --count to at least 2
package-cleanup --oldkernels --count=2
- This is pretty much it, you can then go ahead and update your kernel as normal
yum -y update kernel kernel-headers
Please note that you would need to reboot your server in order for the change to take effect.
To check your system information you could then simply run:
uname -a
Hope that this helps.
Recent Posts

How DigitalOcean Simplifies Cloud Computing for Developers
2023-01-18 12:35:28
How to Get Current Route Name in Laravel
2020-11-08 08:57:11
How to check the logs of running and crashed pods in Kubernetes?
2020-10-28 09:01:44
Top 10 VScode Shortcuts For Mac and Windows to Help You be More Productive
2020-10-28 07:12:51