clean out old kernel versions?

Ming ming at pgp.cool
Sun Mar 7 17:26:17 UTC 2021


On Sun, Mar 07, 2021 at 09:06:34AM -0800, Dave Stevens wrote:
> 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

147?
Why do you have so many linux kernel packages?

> don't see any rcs
> 
> want to see them?

Are you really sure that no line starts with "rc"?

-- 
OpenPGP fingerprint: 3C47 5977 4819 267E DD64  C7E4 6332 5675 A739 C74E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210308/2e3541fa/attachment.sig>


More information about the ubuntu-users mailing list