LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-11-2002, 04:37 AM   #1
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
Opposite to modprobe?


There's this lovely program called modprobe that takes all the heartache out of insmoding lots of crap... but what about when you want to rmmod stuff? Surely there should also be an anti-modprobe? Something that removes modules in their correct order. Too many times have I tried to rmmod something to find that it's still in use by another modules that is not in use!

Just a little rant!
 
Old 12-11-2002, 05:58 AM   #2
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
No, don't think there is something like that. What you can do though is rmmod many modules at once.

rmmod mod1 mod2 mod3

Just repeat rmmoding that line until all are gone. This only works if modules are not in use by applications though.
 
Old 12-11-2002, 08:02 AM   #3
mshater
LQ Newbie
 
Registered: Dec 2002
Posts: 7

Rep: Reputation: 0
How about modprobe -r?
 
Old 12-11-2002, 08:14 AM   #4
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
That works sometimes. For me it usually doesn't...
 
Old 12-11-2002, 10:40 AM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Original Poster
Rep: Reputation: 56
Yeah, I know about these, but thanks anyway guys. Think about it, though... you could go through and insmod all the necessary modules in the order they are required to get, say, the SB Audigy working... or you could modprobe for it and they will sort themselves out. Now, since modules that depend on other modules will have reciprocal entries in the modules.dep file... surely it can't be that hard to write a program that takes a peek at your lsmod output (or even just takes a look at /proc/modules), find any modules that aren't being used and remove them, following through to their propendents. I know I could rmmod -r, and in fact that is what I do... repeatedly until all modules that are not used are removed, but that also removes modules that I didn't really mind being in there.

I know it's silly, but you would have thought that since the insmod and rmmod programs are opposites of one another, there would be an opposite of modprobe too.

Cheers anyway guys.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netatalk opposite phatbastard Linux - Software 2 11-18-2005 04:12 AM
load(lin) -- the opposite JrLz Linux - General 2 05-09-2005 02:16 AM
what's the opposite of operator!() jhorvath Programming 5 11-02-2003 08:21 PM
the opposite command of su? can i access user logins when i am root? how? kublador Linux - Newbie 3 09-11-2003 03:43 AM
finding the opposite... PokerFace Linux - General 1 10-16-2002 08:15 AM


All times are GMT -5. The time now is 12:56 PM.

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