clean out old kernel versions?

Dave Stevens geek at uniserve.com
Sun Mar 7 17:06:34 UTC 2021


On Sun, 7 Mar 2021 15:17:40 +0800
Ming <ming at pgp.cool> wrote:

> On Sat, Mar 06, 2021 at 09:52:58PM -0800, Dave Stevens wrote:
> > /boot has 440 files in it, almost all of which are old kernel
> > entries. Is there a simple way to get rid of all but the most
> > recent few (2 or 3)?
> > 
> > I could find a use for that 4.4 GB of disk space.  
> 
> First run the command: apt autoremove.
> 
> Then check what the following command returns:
> dpkg --list | grep linux-image
> 
> If there are some kernel packages marked with rc, you can use apt
> purge to delete them completely (rc means that the package is
> uninstalled but the configuration file is retained).
> 
user at user-Satellite-A100 /boot $ dpkg --list | grep linux-image | wc
    147    2262   26475
user at user-Satellite-A100 /boot $ 

don't see any rcs

want to see them?

d





-- 
In modern fantasy (literary or governmental), killing people is the
usual solution to the so-called war between good and evil. My books are
not conceived in terms of such a war, and offer no simple answers to
simplistic questions.

----- Ursula Le Guin




More information about the ubuntu-users mailing list