How to Remove Older Linux Kernel From Debian/ubuntu/mint

  • List the installed Linux kernels on your system by the following command:
sudo dpkg --get-selections | grep linux-image
  • This would show you all the installed Linux Kernels on your system. Now that you’ll see the latest and older Linux kernels listed. Now let’s say linux-image-3.2.0 is the older Linux kernel installed on your system and linux-image-3.9.4 is the latest Linux kernel. You’ll supposedly remove linux-image-3.2 as it’s the older Linux kernel and you won’t be using it. So basically it’s of no use at all. To remove it execute the following command in Terminal:
sudo apt-get purge linux-image-3.2.0
  • Remember! DO NOT remove linux-image-generic. It’s necessary to upgrade Linux kernel for your system.
  • Now execute any of the following in Terminal to see whether you’ve successfully removed your older Linux kernel:
dpkg --get-selections | grep linux-im
dpkg --get-selections | grep linux-image

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s