On Thu, 20 Feb 2020 17:11:48 +0100, Michael Pujos <pujos.michael@gmail.com> wrote:
I recently noticed that my /lib/modules folder has a lot of cruft:
bobbie@p72:~> ls /lib/modules/ 4.19.12-1-default 4.20.12-1-default 5.0.10-1-default 5.0.2-1-default 5.0.8-1-default 5.1.15-1-default 5.1.5-1-default 5.2.14-1-default 5.2.5-1-default 5.3.11-1-default 5.3.2-1-default 5.3.6-1-default 5.4.12-1-default 5.4.14-2-default 5.5.2-1-default 4.20.0-1-default 4.20.13-1-default 5.0.11-1-default 5.0.5-1-default 5.0.9-1-default 5.1.2-1-default 5.1.7-1-default 5.2.2-1-default 5.2.7-1-default 5.3.1-1-default 5.3.4-1-default 5.3.9-1-default 5.4.13-1-default 5.4.7-1-default 5.5.4-1-default 4.20.10-1-default 4.20.6-1-default 5.0.1-1-default 5.0.6-1-default 5.1.10-1-default 5.1.4-1-default 5.2.1-1-default 5.2.3-1-default 5.2.9-1-default 5.3.12-1-default 5.3.5-1-default 5.4.10-1-default 5.4.14-1-default 5.5.1-1-default
bobbie@p72:~> du -hs /lib/modules/ 3.6G /lib/modules/
Modules from all kernel versions since I installed TW more than one year ago are there, totalling 3.6G !
Which TW are you running, as my current TW is pretty clean Linux 5.5.4-1-default [openSUSE Tumbleweed 20200218] /lib/modules$ du -sk * 69576 5.4.13-1-default 69640 5.4.14-1-default 69636 5.4.14-2-default 70076 5.5.1-1-default 70080 5.5.2-1-default 71816 5.5.4-1-default
That is not expected, right ? Or am I missing something ?
Note that 15.1 is far worse. (very) old folders are (near) empty, but I too would like to see those being cleaned when needed: Linux 4.12.14-lp151.28.36-default [openSUSE Leap 15.1] /lib/modules$ du -sk * 4 3.11.10-11-default 8 3.11.10-11-desktop 4 3.11.10-11-xen 4 3.11.10-17-default 8 3.11.10-17-desktop 4 3.11.10-17-xen 4 3.11.10-21-default 8 3.11.10-21-desktop 4 3.11.10-21-xen 8 3.11.10-25-default 8 3.11.10-25-desktop 4 3.11.10-25-xen 8 3.11.10-29-default 8 3.11.10-29-desktop 4 3.11.10-29-xen 4 3.11.10-34-xen 4 3.11.10-7-default 8 3.11.10-7-desktop 4 3.11.10-7-xen 8 3.12.59-47-default 8 3.12.59-47-desktop 8 3.12.62-52-default 8 3.12.62-52-desktop 4 3.4.11-2.16-default 24 3.4.11-2.16-desktop 4 3.4.11-2.16-xen 4 3.4.28-2.20-default 20 3.4.28-2.20-desktop 4 3.4.28-2.20-xen 4 3.4.33-2.24-default 20 3.4.33-2.24-desktop 4 3.4.33-2.24-xen 4 3.4.42-2.28-default 20 3.4.42-2.28-desktop 4 3.4.42-2.28-xen 4 3.4.47-2.38-default 20 3.4.47-2.38-desktop 4 3.4.47-2.38-xen 4 3.4.63-2.44-default 24 3.4.63-2.44-desktop 4 3.4.63-2.44-xen 15368 4.12.14-lp150.12.79-default 888 4.12.14-lp151.28.10-default 276772 4.12.14-lp151.28.36-default 8 4.1.31-30-default 8 4.1.34-33-default 8 4.1.36-41-default 8 4.1.36-44-default 8 4.1.38-47-default 8 4.1.38-50-default 10512 4.4.176-96-default 4708 4.4.73-18.17-default 4708 4.4.74-18.20-default 4708 4.4.79-18.26-default 4712 4.4.87-18.29-default 4712 4.4.90-18.32-default 4712 4.4.92-18.36-default -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.31 porting perl5 on HP-UX, AIX, and Linux https://useplaintext.email https://tux.nl http://www.test-smoke.org http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/