Hi, i would like to ask a question related to the folders that the /usr/lib/modules folder should contain. Accidentally while i was messing around i discovered that my /usr/lib/modules folder contains a lot of folders with the name of each kernel version since 3.6.5-1 plus some folders named as extramodules-<major_kernel_version_name>. My question is, do i need all these folders and if not can i erase them safely keeping only the folders which include the current kernel's name? Also can someone explain why they have not been erased automatically during the kernel upgrade. Thanks a lot.
There was something in the directory that has caused it to remain. I have found that using dkms can cause this quite frequently. Even if I tried to uninstall/remove a given module, dkms kind of sucks sometimes, and would somehow not remove the module. This of course leaves untracked files in the /usr/lib/modules directory.
If you don't have those old kernel version then you can remove those module directories. If, for example, you only have the [core] linux kernel and modules installed, you would have 3.11.1-1-ARCH. So you would need to keep /usr/lib/modules/3.11.1-1-ARCH as well as the extramodules-3.11-ARCH directory.
ok, nice thanks