Ubuntu 20.04 did a lot of kernel updates since its installation.
To keep my /boot directory clean I perform on a regular basis the following actions:
To check the space on /boot:
$ df -h
To remove APT caches and temporary files:
$ sudo apt autoremove
To display the currently active kernel:
$ uname -r
To list all the installed kernel packages an to detect old kernels:
$ dpkg -l | grep linux-image
To remove old kernel packages using the output of the previous command:
$ sudo apt remove --purge linux-image-x.xx.x-xx-generic
To clean up the dependencies of the old kernel package:
$ sudo apt autoremove --purge
The System.map-x.xx.x-xx-generic and config-x.xx.x-xx-generic files in /boot are not deleted by this procedure and are wasting a lot of place which is needed for new kernel updates
What is the procedure to remove them?