2

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

Thank you

2
  • 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, 2018 at 4: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, 2018 at 14:40

1 Answer 1

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.

1
  • ps: looking online I note some add a --purge to the command, but I've never needed it.
    – guiverc
    Feb 17, 2018 at 3:12

Not the answer you're looking for? Browse other questions tagged .