Score:0

how to delete old lib files

fo flag

is it correct/advisable to delete the old files under usr/lib/modules, if yes how to delete these directories.

drwxr-xr-x 5 root root 4096 Mar 3 2022 5.4.0-100-generic

drwxr-xr-x 5 root root 4096 May 2 2022 5.4.0-109-generic

drwxr-xr-x 5 root root 4096 Nov 17 11:54 5.4.0-131-generic

drwxr-xr-x 5 root root 4096 Jan 14 2021 5.4.0-42-generic

drwxr-xr-x 5 root root 4096 Jan 19 2021 5.4.0-62-generic

drwxr-xr-x 5 root root 4096 Feb 24 2022 5.4.0-88-generic

Pilot6 avatar
cn flag
`sudo apt autoremove`
Score:0
cc flag

Sometimes the old module directories do not get purged or even autoremoved. These are probably shown from dpkg -l linux- as in the "rc" state. If you cannot purge the package specifically:

sudo apt purge 5.4.0-88-generic

to get rid of them, just delete them. From the /lib/modules directory, you may just recursively remove them:

sudo rm -rf 5.4.0-88-generic

etc.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.