Help - Search - Members - Calendar
Full Version: List of installed modules [solved]
MandrivaUsers.org > Advanced Topics > Command Line, Kernel and Programming
and_woox
I'm looking for a command to list the installed modules of my kernel.
Do you know what command i could use?
Thank you
SilverSurfer60
lsmod (as root)
Greg2
The lsmod command will only give you a list of the loaded modules at that time. If you want a list of all the 'installed' modules on your Mandriva system, and their location: As root do
CODE
updatedb
then do
CODE
locate -e ko.gz
scoonma
QUOTE (Greg2 @ Apr 7 2008, 12:56 PM) *
As root do
CODE
updatedb
then do
CODE
locate -e ko.gz

As I understand it this would list all modules of all installed kernels. So my suggestion is to check your version in use, then go to the specific directory and list modules:
CODE
uname -a
cd /lib/modules/<kernel-version>
ls -al | more
Greg2
QUOTE (scoonma @ Apr 7 2008, 09:49 AM) *
As I understand it this would list all modules of all installed kernels. So my suggestion is to check your version in use, then go to the specific directory and list modules:
CODE
uname -a
cd /lib/modules/<kernel-version>
ls -al | more

That's a good point! I always delete my old kernels, but if you didn't that could be a very large list!

Thanks for pointing that out. smile.gif

However, that command does not enter the directories and list them, or find any modules in /var/lib/dkms.

I will offer a compromise: do
CODE
uname -r
then
CODE
locate -e ko.gz |grep (enter uname -r output here)
replacing (enter uname -r output here) with the real output.
SilverSurfer60
I obviously read the question. Anyway
CODE
locate -e ko.gz | grep `uname -r`
should give the same result I do believe.
Greg2
QUOTE (SilverSurfer60 @ Apr 7 2008, 02:50 PM) *
CODE
locate -e ko.gz | grep `uname -r`

That's the best one. You win! smile.gif
OniLink
CODE
modprobe -l
Greg2
One small edit.
CODE
/sbin/modprobe -l | less
Now you don't have to be root and you can scroll through them. I like it!

I must really be bored? tongue.gif
and_woox
thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.