Re:Ask HN: What do you want to see in Ubuntu 17.10?
by alphapapa on Friday March 31, 2017 @05:49PM
(#14008626)
That's not a good one liner, because it doesn't do anything about the linux-headers packages (which are hundreds of thousands of small files) or the linux-image-extra packages.
Just run "apt-get autoremove".
really, this is what your package manager should do automatically before/after installing new kernels
for your reference: http://askubuntu.com/questions/2793/how-do-i-remove-old-kern...