ragged-rigid
ragged-rigid
ragged-rigid
ragged-rigid
Cleaning up your system and removing old kernels. @ www.digitalpains.net
service

Cleaning up your system and removing old kernels.

foruminternationallanguage

With every new kernel update, you receive another boot loader menu item. It will also eat up space from your /boot partition.
If you don’t want your /boot partition to be filled up, then you need to remove some of the old kernels.

How do we do it? First let’s get the list of kernels installed on our system.

[root@centos ~]# rpm -qa | grep kernel
kernel-2.6.18-128.el5
kernel-2.6.18-164.6.1.el5
alis@advance17:/etc/default$ dpkg -l | grep linux-image
ii  linux-image-2.6.31-11-generic                                 2.6.31-11.38                               Linux kernel image for version 2.6.31 on x86
ii  linux-image-2.6.31-12-generic                                 2.6.31-12.41                               Linux kernel image for version 2.6.31 on x86
ii  linux-image-2.6.31-13-generic                                 2.6.31-13.45                               Linux kernel image for version 2.6.31 on x86
ii  linux-image-2.6.31-14-generic                                 2.6.31-14.48                               Linux kernel image for version 2.6.31 on x86
ii  linux-image-2.6.31-15-generic                                 2.6.31-15.50                               Linux kernel image for version 2.6.31 on x86
ii  linux-image-2.6.31-16-generic                                 2.6.31-16.53                               Linux kernel image for version 2.6.31 on x86
ii  linux-image-generic                                           2.6.31.16.29                               Generic Linux kernel image

Now we know which kernel packages are installed on our system, we can remove them yum (on Redhat systems) or apt-get (Ubuntu systems) programs. You can also use rpm and dkpg programs but I wouldn’t recommend this approach. rpm and dpkg will not remove the dependent packages which will not be used anymore.

On Redhat

yum remove kernel-version
apt-get remove linux-image-2.6.28-11-server

Related posts:

  1. Keeping the old kernel as default after a kernel upgrade
  2. mount: could not find any free loop device
  3. VirtualBox can’t operate in VMX root mode. -4011 (VERR_VMX_IN_VMX_ROOT_MODE)
  4. Installing VMWare Tools for ESXi Server on a RHEL 5 / Centos 5 Guest
  5. Configuring an additional Yum repository.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

 
report
contact