Unlike the standard version of Linux Mint, Update Manager on LMDE does not include a GUI that allows you to manage currently installed kernels. However there is an option under Preferences ➜ Automation ➜ Automatic Maintenance ➜ Remove obsolete kernels and dependencies. This feature relies on apt (specifically it runs apt-get autoremove --purge), and apt will only remove old kernels which are marked as automatically installed. If any of your old kernels are not marked as automatically installed for some reason, then those won't be removed with the scheduled weekly job by the Update Managers Automatic Maintenance.
This shows you how to remove all currently installed kernels except the one currently running, and remove all but the 5 most recent kernels.
Remove All Kernels
This will not remove the currently running kernel, that is ensured with grep -v "$(uname -r)".
for img in $(dpkg-query -W -f='${Status}\t${Package}\n' 'linux-image-[0-9]*' | awk '$1=="install" && $2=="ok" && $3=="installed" {print $4}' | grep -v "$(uname -r)" | sort -V); do ver=${img#linux-image-};sudo apt purge -y "linux-image-$ver" "linux-headers-$ver" "linux-kbuild-${ver%-amd64}";done
Remove All Kernels Except the 5 Most Recent
for img in $(dpkg-query -W -f='${Status}\t${Package}\n' 'linux-image-[0-9]*' | awk '$1=="install" && $2=="ok" && $3=="installed" {print $4}' | grep -v "$(uname -r)" | sort -V | head -n -5); do ver=${img#linux-image-};sudo apt purge -y "linux-image-$ver" "linux-headers-$ver" "linux-kbuild-${ver%-amd64}";done
dpkg and apt. I recommend dpkg but there's no wrong reason to use apt.
