Complete removal of old Linux images: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>


Show your current kernel:
Show your current kernel, this is the one you need to keep at minimum:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 31: Line 31:
# (multi) select the packages with names like 'linux-image-3.13.0-125-generic'. Do  '''NOT''' select your current or newer kernels. You might want to keep one older version as well.
# (multi) select the packages with names like 'linux-image-3.13.0-125-generic'. Do  '''NOT''' select your current or newer kernels. You might want to keep one older version as well.
# Right-click a kernel and choose 'Complete removal'. Related packages will be selected automatically.
# Right-click a kernel and choose 'Complete removal'. Related packages will be selected automatically.
# click the Apply button, it might take some time to complete
# Click the Apply button. It might take some time to complete


Remove corresponding headers:
Remove corresponding headers:
* Repeat this search and complete removal for 'linux-header' with corresponding names like 'linux-headers-3.13.0-125'. Again, do  '''NOT''' select your current or newer kernels.
* Repeat this search and complete removal for 'linux-headers' with names like 'linux-headers-3.13.0-125'. Again, do  '''NOT''' select your current or newer kernels.


= Why =
= Why =

Revision as of 07:41, 11 August 2017


Removing old Kernels

Install Synaptic package manager:

sudo apt-get install synaptic

Show your current kernel, this is the one you need to keep at minimum:

uname -r
linux-image-3.13.0-125-generic

Remove older kernels:

  1. Start synaptic.
  2. Search for 'linux-image'
  3. Filter for installed packages
  4. (multi) select the packages with names like 'linux-image-3.13.0-125-generic'. Do NOT select your current or newer kernels. You might want to keep one older version as well.
  5. Right-click a kernel and choose 'Complete removal'. Related packages will be selected automatically.
  6. Click the Apply button. It might take some time to complete

Remove corresponding headers:

  • Repeat this search and complete removal for 'linux-headers' with names like 'linux-headers-3.13.0-125'. Again, do NOT select your current or newer kernels.

Why

Reasons why you might want to do this:

  • free up some disk space, could be some Gb-s
  • speed-up grub updates