How Do I Remove Old Ubuntu Kernels?
Contents

How do I remove old kernels from Ubuntu?

The procedure to delete all unused old kernels on Ubuntu Linux version 18.04 and 20.04 LTS is as follows:

  1. First, boot into a new kernel.
  2. List all other older kernel using the dpkg command.
  3. Note down system disk space usage by running the df -H command.
  4. Delete all unused old kernels, run: sudo apt –purge autoremove.

21 февр. 2021 г.

How do I remove unused Linux kernels?

Remove All Old Kernels Using the Command Line

The system scans for unused kernels and displays a summary of the files it wants to delete. It prompts you to confirm your choice to remove old kernels by pressing y and Enter to delete.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest