LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-25-2010, 10:48 PM   #1
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Blog Entries: 2

Rep: Reputation: 16
how to remove installed device drivers in centos 5.4


Hello All,

I installed the following packages:

ieee80211-kmdl-2.6.18-164.10.1.el5-1.2.18-22.el5.i686.rpm
ipw2200-kmdl-2.6.18-164.10.1.el5-1.2.0-45.2.0.1.el5.i686.rpm

from http://atrpms.net/dist/el5/

How to remove them completely? The ipw2200 driver complains that it could not agree with certain symbols in ieee80211 module. Before taking another route, I would like to know how to completely remove the files installed by these driver packages.

Thanks in advance for your suggestions and time.

Cheers...
 
Old 01-26-2010, 12:11 AM   #2
Woodypecker
Member
 
Registered: Mar 2006
Location: Austria
Distribution: Mandriva/Debian
Posts: 104

Rep: Reputation: 17
The common answer would be "man rpm" but it is likely considered rude here
Anyway, if there is "rpm -i" then there is a "rpm -e" as well.
A kernel module, once it got loaded, can be unloaded with "rmmod" most of the time.
 
Old 01-26-2010, 01:38 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you can also use the package manager GUI if you want

it is called " add or remove programs " and should be under Applications / system tools
 
Old 01-26-2010, 05:48 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Removing the ieee80211-kmdl will break networking. You will need to stop your network devices (if they are up) before removing the modules.
sudo /sbin/modprobe -r ipw2200
sudo /sbin/modporbe -r ieee80211

Then use your package manager, or the rpm command to erase these packages.

Since this is a problem with kernel modules, I'm going to move this thread to Linux Kernel where it should get better exposure to your question.
 
Old 01-26-2010, 07:49 AM   #5
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by Woodypecker View Post
The common answer would be "man rpm" but it is likely considered rude here
Anyway, if there is "rpm -i" then there is a "rpm -e" as well.
A kernel module, once it got loaded, can be unloaded with "rmmod" most of the time.
I raised the question here after trying what you have suggested.

rpm -i says package is already installed. I even tried rpm --freshen --force to install the package. It looks like the install went fine but when I do, rpm -e it says package is not installed. I am confused.

lsmod does not list either ipw2200 or ieee80211.
 
Old 01-26-2010, 07:57 AM   #6
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
you can also use the package manager GUI if you want

it is called " add or remove programs " and should be under Applications / system tools
Sorry I forgot to mention this, my laptop does not have GNOME or KDE installed. I just have X running and for the most part I work with the command line.

More details on why I am having this problem. It all started when I got a kernel panic after installing the ipw2200 and ieee80211 kernel modules. I removed them using the ./remove_old shell script provided with the source. Then I searched the internet and found the rpms (cited in my initial message) and installed them. When I rebooted the laptop, the dmesg log had entries that said, ipw2200 not agreeing with certain symbols in ieee80211. I used the same ./remove_old shell script to remove the modules installed by the rpms. I think this caused the problem I am having now.

PS: I downloaded the source for ipw2200 and ieee80211 modules from their respective sourceforge site.
 
Old 01-26-2010, 08:43 AM   #7
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
When you run rpm -e you must not provide the full filename as in:
Quote:
# rpm -e ipw2200-kmdl-2.6.18-164.10.1.el5-1.2.0-45.2.0.1.el5.i686.rpm
The command will fail. Instead, you need to specify only the name of the package in this case is most likely just ipw2200
Quote:
# rpm -e ipw2200
If that doesn't work, the name is probably wrong. You can find out the actual name of the package by running:
Quote:
# rpm -qpi ipw2200-kmdl-2.6.18-164.10.1.el5-1.2.0-45.2.0.1.el5.i686.rpm
 
Old 01-27-2010, 09:22 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do the kernel versions of these two modules match what your kernel is? Why are you downloading rpm's from the internet and not from your repository or DVD install disk?

Usually if you have a mismatch of symbols trying to install a kernel module, it is when you try to build a module from source, which doesn't match your kernel.

Run "sudo /sbin/depmod -a" to make sure the module dependency files are up to date.

I was thinking of the mac80211 kernel module, which would be used for any NIC or wireless device. If you use preshared keys, then you may not need the ieee80211 module. The modules should come with your kernel rpm package.

I tried downloading ieee80211-kmdl-2.6.18-164.10.1.el5-1.2.18-22.el5.i686.rpm from ATrpms. Trying to run rpm2cpio, failed. there was a fishy license printed out. Use your distro's packages. Not something you found on the net.
 
Old 01-28-2010, 08:07 AM   #9
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68

Original Poster
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by jschiwal View Post
Do the kernel versions of these two modules match what your kernel is? Why are you downloading rpm's from the internet and not from your repository or DVD install disk?
yum could not find any ipw2200 or ieee80211 modules from the repositories. That's why I searched for them on the internet and tried to install them.

Quote:
Originally Posted by jschiwal View Post
Usually if you have a mismatch of symbols trying to install a kernel module, it is when you try to build a module from source, which doesn't match your kernel.

Run "sudo /sbin/depmod -a" to make sure the module dependency files are up to date.

I was thinking of the mac80211 kernel module, which would be used for any NIC or wireless device. If you use preshared keys, then you may not need the ieee80211 module. The modules should come with your kernel rpm package.
My wireless router is IEEE 802.11 b/g based. So will I not need the ieee80211 module? The router is configured to use pre-shared keys to establish connection to the router.

Quote:
Originally Posted by jschiwal View Post
I tried downloading ieee80211-kmdl-2.6.18-164.10.1.el5-1.2.18-22.el5.i686.rpm from ATrpms. Trying to run rpm2cpio, failed. there was a fishy license printed out. Use your distro's packages. Not something you found on the net.
I will try this.

Thanks for the information.
 
  


Reply

Tags
centos, device, driver, uninstall



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
detect usb device insert/remove and get device node from "C" program ebinjose Linux - Embedded & Single-board computer 4 04-29-2012 08:26 AM
how do i remove suPHP CentOS mikecoyne83 Linux - Server 2 11-17-2009 11:49 AM
need to dual boot centos 5.1 with xp but centos is already installed. extendedping Linux - Software 4 05-13-2008 08:40 PM
remove centos logo learnq Linux - Desktop 5 02-24-2008 06:33 PM
ndiswrapper installed, driver installed. No device appears... kurtwisener Fedora 5 03-25-2006 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration