LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   how to remove installed device drivers in centos 5.4 (http://www.linuxquestions.org/questions/linux-kernel-70/how-to-remove-installed-device-drivers-in-centos-5-4-a-784752/)

anand.arumug 01-25-2010 10:48 PM

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...

Woodypecker 01-26-2010 12:11 AM

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.

John VV 01-26-2010 01:38 AM

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

jschiwal 01-26-2010 05:48 AM

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.

anand.arumug 01-26-2010 07:49 AM

Quote:

Originally Posted by Woodypecker (Post 3840577)
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.

anand.arumug 01-26-2010 07:57 AM

Quote:

Originally Posted by John VV (Post 3840647)
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.

ongte 01-26-2010 08:43 AM

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

jschiwal 01-27-2010 09:22 AM

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.

anand.arumug 01-28-2010 08:07 AM

Quote:

Originally Posted by jschiwal (Post 3842279)
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 (Post 3842279)
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 (Post 3842279)
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.


All times are GMT -5. The time now is 05:16 AM.