and_woox Posted April 7, 2008 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 Link to comment Share on other sites More sharing options...
SilverSurfer60 Posted April 7, 2008 Share Posted April 7, 2008 lsmod (as root) Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 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 Link to comment Share on other sites More sharing options...
scoonma Posted April 7, 2008 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 Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 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. Link to comment Share on other sites More sharing options...
SilverSurfer60 Posted April 7, 2008 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. Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 Share Posted April 7, 2008 locate -e ko.gz | grep `uname -r` That's the best one. You win! :) Link to comment Share on other sites More sharing options...
Guest OniLink Posted April 7, 2008 Share Posted April 7, 2008 modprobe -l Link to comment Share on other sites More sharing options...
Greg2 Posted April 7, 2008 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 Link to comment Share on other sites More sharing options...
and_woox Posted April 8, 2008 Author Share Posted April 8, 2008 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now