Cannot update kernel

Hi,

Virtualmin is saying that I need to update it's kernel but says it needs 27MB on the /boot filesystem and I'm not really sure what files can be deleted safely to free up space or can I increase the boot filesystem size, either one is ok

thank you

Dependencies Resolved

================================================================================ Package

Arch Version Repository Size

Installing: kernel i686 2.6.32-573.26.1.el6 updates 28 M Removing: kernel i686 2.6.32-71.el6 @anaconda-centos-201106051823.i386/6.0 85 M

Transaction Summary

Install 1 Package(s) Remove 1 Package(s)

Total size: 28 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Transaction couldn't start: installing package kernel-2.6.32-573.26.1.el6.i686 needs 27MB on the /boot filesystem

[('installing package kernel-2.6.32-573.26.1.el6.i686 needs 27MB on the /boot filesystem', (9, '/boot', 27588608L))] .. install failed!

No packages were installed. Check the messages above for the cause of the error.

Status: 
Active

Comments

Joe's picture
Submitted by Joe on Wed, 05/25/2016 - 02:49 Pro Licensee

I usually remove old kernels when I need to free up space on /boot (that's pretty much the only thing on /boot).

Virtualmin doesn't care what kernel you run, we just notify you of all updates available for your system, as they often have security-related fixes.

To remove old kernels:

Figure out what kernel you're currently running (you want to keep it around, just in case something goes wrong with the updated kernel:

uname -a

Or look in the "Kernel and CPU" field on the System Information page in Virtualmin (click the "i" in the lower portion of the left menu. System information is the dashboard page you see when you first login as root.

Then figure out what other kernels are installed:

rpm -q kernel

(You can also see this in the Webmin->System->Software Packages module, but searching for "kernel" in the Installed Packages search section.)

Get rid of the ones you aren't currently running:

rpm -e kernel-

Can also be done in the Software Packages module.

Install the new kernel in the Software Updates module.