Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-20-2009, 08:21 AM   #1
Registered: Jul 2008
Distribution: Slackware, ubuntu
Posts: 53

Rep: Reputation: 15
modprobe -r or rmmod

Will modprobe -r modulename and rmmod modulename accomplish the same thing?

If not, what command should be used under what circumstances?

Old 07-20-2009, 08:46 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,628
Blog Entries: 11

Rep: Reputation: 216Reputation: 216Reputation: 216
Straight from the man(ual) rmmod
rmmod is a trivial program to remove a module from the kernel. Most users will want to use modprobe(8) instead, with the -r option.
And when reading up on man modprobe the only diffrence not mentioned for rmmod is that no longer modules are not removed.

Cheers Zhjim
Old 07-20-2009, 11:39 AM   #3
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
To clarify language from zhjim, rmmod will not remove unused, dependent modules that were used. In short, modprobe does dependency checking like a package manager.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rmmod error shin2011 Linux - Newbie 2 12-02-2008 08:42 PM
help with insmod and rmmod jaepi Programming 21 05-28-2007 10:42 PM
rmmod: command not found ferradura Slackware 3 12-19-2006 02:42 PM
rmmod -f not working R0UTE Linux - Software 0 10-27-2004 10:12 AM
Why can't I use lsmod rmmod etc JohnSharp Linux - Newbie 4 04-08-2004 11:11 AM

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration