Tuesday, 13 January 2009

Removing old Kernels | cPanel moaning about / partition

You’ll often find lots of kernels sitting on the server when it’s moaning about the / partition being full. It’s a simple job to remove them.

First, we’ll find out what kernels are sitting on the server:

rpm -qa | grep kernel

Once we know which ones are on the server, we need to find out what kernel we’re running:

uname -r

Now, we need to remove all the old kernels from the server and keep the one we’re running (the output from uname -r)

rpm -e [list all the kernels we don't want here]

MAKE SURE YOU RETAIN THE PACKAGE WITH -utils-

No comments:

Post a Comment