LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM hell, how to remove source rpms? (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-hell-how-to-remove-source-rpms-143038/)

baudchaser 02-06-2004 01:09 PM

RPM hell, how to remove source rpms?
 
I was trying to get a wireless card working, and installed a source rpm. It didn't work, and I want to try again, but I can not remove the rpm. From what I understand, rpm -e will not work, as it was installed via source. If I try rpm -e at76c503-rfmd, etc, I get "error: package at76c503-rfmd is not installed". I have searched high and low and can not find out how to remove the package. I am asking in here before I have to reinstall, but I would really like to know as I don't want to have to reinstall every time I want to remove a source package.

edit: RH 9.0

artur 02-06-2004 01:48 PM

what was the SRPM package called?
what command did you use to install it?

try rpm -qa | grep at76
to see how exactly your package is known to rpm.

you could also try rpm -qa | less to scroll through the list of RPMs that are installed to see if you can recognise your package's name.

You could also try rpm -qal if you wish to look through painfully long list of all files installed by RPM to see if you can recognize some file names.

Once you know what files you're looking for, do a rpm -q --whatprovides <filename> to see which package installed that file. Of course you'd omit the "<" and ">"

baudchaser 02-09-2004 04:32 PM

I ran rpm -qa | grep at76, and was returned at76c503a-cvs20030728-tnl. When I run rpm -q --whatprovides at76c503a-cvs20030728-tnl, it says "no package provides at76c503a-cvs20030728-tnl.

I think I may have accidentally deleted the source? I had a few variations of the driver on the machine and may have accidentally deleted the wrong one :(

artur 02-13-2004 10:16 AM

Quote:

Originally posted by baudchaser
I ran rpm -qa | grep at76, and was returned at76c503a-cvs20030728-tnl. When I run rpm -q --whatprovides at76c503a-cvs20030728-tnl, it says "no package provides at76c503a-cvs20030728-tnl
This might be correct. Try rpm --help | less to learn what exactly -qa and --whatprovides do. You seem to have a package called at76c503a-cvs20030728-tnl.rpm installed, that does not contain a file at76c503a-cvs20030728-tnl. For your own info try
Code:

rpm -ql at76c503a-cvs20030728-tnl
to see what files got actually installed by at76c503a-cvs20030728-tnl.rpm package and
Code:

rpm -e at76c503a-cvs20030728-tnl
to remove it


All times are GMT -5. The time now is 01:04 PM.