Complete removal of old Linux images: Difference between revisions
From WickyWiki
mNo edit summary |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
[[Category:Ubuntu System]] | [[Category:Ubuntu System]] | ||
[[Category:2017]] | [[Category:2017]] | ||
<!-- clean up cleanup --> | |||
* http://askubuntu.com/questions/2793/how-do-i-remove-old-kernel-versions-to-clean-up-the-boot-menu | * http://askubuntu.com/questions/2793/how-do-i-remove-old-kernel-versions-to-clean-up-the-boot-menu | ||
| Line 7: | Line 9: | ||
= Removing old Kernels = | = Removing old Kernels = | ||
Install Synaptic package manager: | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
| Line 13: | Line 15: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Show your current kernel, this is the one you need to keep at minimum: | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
| Line 20: | Line 22: | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang=bash> | |||
linux-image-3.13.0-125-generic | |||
</syntaxhighlight> | |||
</blockquote> | </blockquote> | ||
Remove older kernels: | |||
# Start synaptic. | |||
# Search for 'linux-image' | |||
# Filter for installed packages | |||
# (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. | |||
# Click the Apply button. It might take some time to complete | |||
* Repeat this search and removal for 'linux- | 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 = | = Why = | ||
Latest revision as of 05:37, 24 May 2018
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:
- Start synaptic.
- Search for 'linux-image'
- Filter for installed packages
- (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.
- 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