2

I have many old kernels and I'd like to know which is the safest way to remove them.

Thank you

ubu16
  • 101
  • Always check what new kernel working fine. Once I had a problem with new kernel drivers, and were forced to boot old kernel for few months, until they fixed it. – LeonidMew Feb 17 '18 at 04:03
  • @karel,I read this thread before,I made the question to understand which is the best solution.@N0rbert,I didn't read your answer before,now I read that you use purge-old-kernels.Therefore I have the same doubt. – ubu16 Feb 17 '18 at 14:40

1 Answers1

2

sudo apt autoremove

The man (manual) page states autoremove

       autoremove is used to remove packages that were automatically
       installed to satisfy dependencies for other packages and are now no
       longer needed.

which includes old kernels.

guiverc
  • 30,396