clean out old kernel versions?

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


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).

-- 
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/20210307/5a974066/attachment.sig>


More information about the ubuntu-users mailing list