You are not logged in.

#1 2013-09-23 22:29:38

theodore
Member
From: Aalborg / Denmark
Registered: 2008-09-09
Posts: 68

/usr/lib/modules containing folders

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.

Offline

#2 2013-09-23 22:56:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,116
Website

Re: /usr/lib/modules containing folders

Not and Inatallation issue, moving to Kernel & Hardware...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2013-09-23 23:02:19

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: /usr/lib/modules containing folders

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.

Offline

#4 2013-09-23 23:08:17

theodore
Member
From: Aalborg / Denmark
Registered: 2008-09-09
Posts: 68

Re: /usr/lib/modules containing folders

ok, nice thanks

Offline

Board footer

Powered by FluxBB