Hi Clive,
> $ dpkg-query -Wf '${package}\n' 'linux-image-*' | sort -V
> linux-image-6.14.0-29-generic
> linux-image-6.14.0-36-generic
> linux-image-6.14.0-37-generic
> linux-image-6.17.0-14-generic
> linux-image-6.17.0-19-generic
> linux-image-6.17.0-20-generic
> linux-image-6.17.0-22-generic
> linux-image-6.17.0-23-generic
> linux-image-6.17.0-29-generic
> linux-image-6.17.0-35-generic
> linux-image-6.17.0-40-generic
> linux-image-7.0.0-28-generic
> linux-image-7.0.0-29-generic
> linux-image-generic-hwe-24.04
> linux-image-unsigned-6.14.0-29-generic
> linux-image-unsigned-6.14.0-36-generic
> linux-image-unsigned-6.14.0-37-generic
> linux-image-unsigned-6.17.0-14-generic
> linux-image-unsigned-6.17.0-19-generic
> linux-image-unsigned-6.17.0-20-generic
> linux-image-unsigned-6.17.0-22-generic
> linux-image-unsigned-6.17.0-23-generic
> linux-image-unsigned-6.17.0-29-generic
> linux-image-unsigned-6.17.0-35-generic
> linux-image-unsigned-6.17.0-40-generic
> linux-image-unsigned-7.0.0-28-generic
> linux-image-unsigned-7.0.0-29-generic
> $
>
> That's the list of files I was trying to explain! :)
As Tim H suggested, you could see if many of them are no longer
dependencies of anything by seeing if they're listed as the packages to
remove by:
sudo -i apt-get autoremove --purge
(I tend to use --purge to remove configuration files too.)
That may well cause many of them to be removed, freeing disk space,
apart from the one you're booting from, and one or two previous ones in
case they're needed to recover.
Other commands which will clear space taken by package files, which may
be sitting in your root partition, are:
sudo -i apt-get autoclean
sudo -i apt-get clean
--
Cheers, Ralph.
--
Next meeting: Online, Jitsi, Tuesday, 2026-09-01 20:00
Check to whom you are replying
Meetings, mailing list, IRC, ... https://dorset.lug.org.uk
New thread, don't hijack: mailto:[email protected]