I want to do a cleanup. After somethings I did:
$ uname -a
Linux <OS_name> 5.8.0-49-generic #55~20.04.1-Ubuntu SMP Fri Mar 26 01:01:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
And then:
$ dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'
linux-headers-5.8.0-49-generic
linux-headers-generic-hwe-20.04
linux-image-5.8.0-49-generic
linux-image-generic-hwe-20.04
linux-modules-5.8.0-49-generic
linux-modules-extra-5.8.0-49-generic
Now I want to know "Is keeping linux-headers-generic-hwe-20.04
and linux-image-generic-hwe-20.04
necessary? I want to do apt purge
for cleaning.
linux-headers-generic-hwe-20.04
andlinux-image-generic-hwe-20.04
packages ensure you always have the most up to date kernel version installed (these two packages will always depend on the newest kernel version for update purposes). It appears that you have already deleted the older kernels as only version 5.8.0-49 exists. There is nothing more to do. This looks good. – mchid Apr 13 '21 at 08:23