Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256342

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

From David <curmudgeon@telaman.net.au>
Newsgroups linux.debian.user
Subject Re: Culling old versions of Kernel from /usr/lib/modules/
Date 2023-03-24 23:30 +0100
Message-ID <GcY53-eR4K-1@gated-at.bofh.it> (permalink)
References <GcXC1-eQFu-5@gated-at.bofh.it> <GcXC1-eQFu-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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!

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Culling old versions of Kernel from /usr/lib/modules/ KCB Leigh <kcbl2003@yahoo.co.uk> - 2023-03-24 23:00 +0100
  Re: Culling old versions of Kernel from /usr/lib/modules/ David <curmudgeon@telaman.net.au> - 2023-03-24 23:30 +0100
  Re: Culling old versions of Kernel from /usr/lib/modules/ Joe <joe@jretrading.com> - 2023-03-25 10:00 +0100

csiph-web