Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You've updated your system (kernel) multiple times which is why you have multiple menu entries in grub. Get a listing of installed kernels using rpm -qa | grep kernel-3. and use yum remove kernel-[the ones you wish to remove] to clean-up the system.

As a guide:

rpm -qa | grep kernel-3. returns:

kernel-3.11.1-200.fc19.x86_64

kernel-3.10.10-200.fc19.x86_64

kernel-3.10.11-200.fc19.x86_64

We only want to keep the one with the highest number (kernel-3.11.1-200.fc19.x86_64) which is the latest kernel.

Thus we'll run the command yum remove kernel-3.10.10-200.fc19.x86_64 kernel-3.10.11-200.fc19.x86_64 to remove the older kernels:

You've updated your system (kernel) multiple times which is why you have multiple menu entries in grub. Get a listing of installed kernels using rpm -qa | grep kernel-3. and use yum remove kernel-[the ones you wish to remove] to clean-up the system.

As a guide:

rpm -qa | grep kernel-3. returns:

kernel-3.11.1-200.fc19.x86_64

kernel-3.10.10-200.fc19.x86_64

kernel-3.10.11-200.fc19.x86_64

We only want to keep the one with the highest number (kernel-3.11.1-200.fc19.x86_64) which is the latest kernel.

Thus we'll run the command yum remove kernel-3.10.10-200.fc19.x86_64 kernel-3.10.11-200.fc19.x86_64 to remove the older kernels:kernels.

You've updated your system (kernel) multiple times which is why you have multiple menu entries in grub. Get a listing of installed kernels using rpm -qa | grep kernel-3. and use yum remove kernel-[the ones you wish to remove] to clean-up the system.

As a guide:

rpm -qa | grep kernel-3. returns:

kernel-3.11.1-200.fc19.x86_64

kernel-3.10.10-200.fc19.x86_64

kernel-3.10.11-200.fc19.x86_64

We only want to keep the one with the highest number (kernel-3.11.1-200.fc19.x86_64) which is the latest kernel.

Thus we'll run the command yum remove kernel-3.10.10-200.fc19.x86_64 kernel-3.10.11-200.fc19.x86_64 to remove the older kernels.

* As mentioned in other comments, keep at least the last known working kernel.

click to hide/show revision 4
Added a simpler way of handling old kernels

You've updated your system (kernel) multiple times which is why you have multiple menu entries in grub. Get a listing of installed kernels using rpm -qa | grep kernel-3. and use yum remove kernel-[the ones you wish to remove] to clean-up the system.

As a guide:

rpm -qa | grep kernel-3. returns:

kernel-3.11.1-200.fc19.x86_64

kernel-3.10.10-200.fc19.x86_64

kernel-3.10.11-200.fc19.x86_64

We only want to keep the one with the highest number (kernel-3.11.1-200.fc19.x86_64) which is the latest kernel.

Thus we'll run the command yum remove kernel-3.10.10-200.fc19.x86_64 kernel-3.10.11-200.fc19.x86_64 to remove the older kernels.

* As mentioned in other comments, keep at least the last known working kernel.

Method 2

yum install yum-utils

package-cleanup --oldkernels --count=2

Make the changes permanent while keeping backups:

vi /etc/yum.conf

installonly_limit=2