After updating your centos, you might see the old kernel in the grub menu. This is how you remove the old kernel on centos (if you want to) :

  1. to ensure you really have old kernel installed, use rpm -q kernel to see it.
  2. Install yum-utils with yum install yum-utils
  3. remove it using package-cleanup --oldkernels --count=2. the --count option means how many kernels you want left

To make it always limited amount of kernels left after update, edit /etc/yum.conf and set installonly_limit. If you want always left 2 kernels then use installonly_limit=2

Tidak ada Komentar

    (Required, will not be published)