# How to cleanup old kernel modules in /usr/lib/modules

**URL:** <https://dietpi.com/forum/t/how-to-cleanup-old-kernel-modules-in-usr-lib-modules/6224>\
**Category:** Troubleshooting\
**Created:** [23 January 2022 10:36 UTC](https://dietpi.com/forum/t/how-to-cleanup-old-kernel-modules-in-usr-lib-modules/6224 "2022-01-23T10:36:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![74cmonty](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/7/a88e57/32.png) [@74cmonty](https://dietpi.com/forum/u/74cmonty)\
**Post date:** [23 January 2022 10:36 UTC](https://dietpi.com/forum/t/how-to-cleanup-old-kernel-modules-in-usr-lib-modules/6224/1 "2022-01-23T10:36:54Z")

</div>

Hello,

I have identified differen kernel modules in /usr/lib/modules:

```nohighlight
# ls -l /usr/lib/modules                                                                                                                                                                     
insgesamt 16
drwxr-xr-x 3 root root 4096 Jan 22 18:00 5.10.63+
drwxr-xr-x 3 root root 4096 Jan 22 18:00 5.10.63-v7+
drwxr-xr-x 3 root root 4096 Jan 22 18:00 5.10.63-v7l+
drwxr-xr-x 3 root root 4096 Jan 22 18:00 5.10.63-v8+

```

Can you please advise how to start cleanup?

THX

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [23 January 2022 10:41 UTC](https://dietpi.com/forum/t/how-to-cleanup-old-kernel-modules-in-usr-lib-modules/6224/2 "2022-01-23T10:41:36Z")

</div>

these are not old kernel modules. They are all port of the same kernel 5.10.63

By default RPi kernel will be chipped with all modules for all available platforms ARMv6, ARMv7 and ARMv8. There is no needed to clean this. Usually they will be replaces by a new kernel automatically. Actual available kernel version is 5.10.92
