I am wondering how can I do remove old kernel from Ubuntu operating system. Please refer image screenshot taken. Please advice. Many thanks. list of linux kernel
Asked
Active
Viewed 303 times
0
-
Just FYI it is much more useful to include text as text in your question (since it can be searched by search engines) than to paste an image. – Kurankat Apr 20 '20 at 04:39
3 Answers
1
To remove old kernel versions on Ubuntu 18.04 or above :
sudo apt-get -y --purge autoremove
To remove old Kernel Ubuntu 16.04 LTS and older :
sudo -i
apt-get -y --purge remove $(dpkg --list | egrep -i 'linux-image|linux-headers' | awk '/ii/{ print $2}' | egrep -v "$i")

Julien J
- 123
- 7
0
First, reboot your PC, and then check the current kernel the OS is using:
uname -r && sudo update-grub
second, list the kernels
dpkg -l | grep linux
third, compare the output of the first step with the second step.
finally, sudo apt purge <all-of-the-old-kernel-name>

Kanaza
- 13
- 2
0
Had similar problem on debian 10, this post has solution for ubuntu....very simple and straight forward solution. worth a look if encountering same/similar issue

t09
- 21
- 1
- 1
- 6