purge-old-kernels deprecated

Grizzly Real_Grizz_Adams at yahoo.co.uk
Thu Jan 5 10:52:26 UTC 2023


05 January 2023  at 8:04, David Fletcher wrote:
Re: purge-old-kernels deprecated (at least in part)

>On Thu, 2023-01-05 at 01:46 -0500, Jeffrey Walton wrote:
>> 
>> How does one use Apt(8) to remove old kernels with a --keep argument?
>
>I'm not aware of any keep argument. For a while now I've been using
>
>sudo apt autoremove
>
>which I believe automatically keeps two kernels. I also use
>
>sudo apt autoclean
>
>which sometimes deletes some redundant files.

There is a script (not sure who wrote it) 

rm-kernels

that clears out old kernels giving you the choice remove the ones you want to





More information about the ubuntu-users mailing list