[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Culling old versions of Kernel from /usr/lib/modules/



On Fri, 2023-03-24 at 21:39 +0000, KCB Leigh wrote:
> This message is related to the 'Re: solution to / full' thread.
> 
> I am running my computer from a Debian 11.6 OS on a 25GB partition on
> a USB stick.  The root partition is now 70% full, with over 4GB (16%)
> of
> the volume occupied by /usr/lib/modules/ (3.5GB) &
> /usr/lib/x86_64-linux-gnu (1.4GB) - as far as I can tell, this latter
> directory only has essential, current files.  I have been using this
> volume for over a year, & the modules directory now has over a
> dozen kernels from previous versions of the operating system.  I can
> see the need to retain the last couple of versions, but within the
> space constraints, I really cannot afford to keep all of these old
> kernels, each consuming 307-323MB.
> 
> MY QUESTION:
> - Is there some utility that pares these files, or must one do this
>   manually?

Su to root.
`apt auto-remove'
enter

After this, install cruft-ng and deborphan to help keep things tidy.
Cheers!



Reply to: