and_woox Posted April 7, 2008 Report Share Posted April 7, 2008 I'm looking for a command to list the installed modules of my kernel. Do you know what command i could use? Thank you Quote Link to comment Share on other sites More sharing options...
SilverSurfer60 Posted April 7, 2008 Report Share Posted April 7, 2008 lsmod (as root) Quote Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 Report Share Posted April 7, 2008 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 updatedb then do locate -e ko.gz Quote Link to comment Share on other sites More sharing options...
scoonma Posted April 7, 2008 Report Share Posted April 7, 2008 As root doupdatedb then do 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: uname -a cd /lib/modules/<kernel-version> ls -al | more Quote Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 Report Share Posted April 7, 2008 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: 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. :) 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 uname -r then locate -e ko.gz |grep (enter uname -r output here) replacing (enter uname -r output here) with the real output. Quote Link to comment Share on other sites More sharing options...
SilverSurfer60 Posted April 7, 2008 Report Share Posted April 7, 2008 I obviously read the question. Anyway locate -e ko.gz | grep `uname -r` should give the same result I do believe. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 Report Share Posted April 7, 2008 locate -e ko.gz | grep `uname -r` That's the best one. You win! :) Quote Link to comment Share on other sites More sharing options...
Guest OniLink Posted April 7, 2008 Report Share Posted April 7, 2008 modprobe -l Quote Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 Report Share Posted April 7, 2008 One small edit. /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? :P Quote Link to comment Share on other sites More sharing options...
and_woox Posted April 8, 2008 Author Report Share Posted April 8, 2008 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.