find kernels
dpkg -l | awk '{print $2}' | grep linux | grep -e headers -e image -e modules
aptitude purge
every one having version number lower than the highest.
EDIT: Is it really safe to remove modules?
See also cleaning after package managers.
find kernels
dpkg -l | awk '{print $2}' | grep linux | grep -e headers -e image -e modules
aptitude purge
every one having version number lower than the highest.
EDIT: Is it really safe to remove modules?
See also cleaning after package managers.