[SuSE Linux] problems with RPM
I have run intro some problems with RPM on my suse 5.3 linux box When I install a RPM with rpm -i rpmfilename.rpm everythings OK. When I want to query the installed rpm or delete the installed rpm (with rpm -e rpmfilename.rpm or wpm -e rpmfilename) I got a message saying that it cannot be done since the file is NOT installed. When I do a rpm -i filename.rpm again, I got a message saying that the package is already installed. The files are on my system, so they are installed. What's going on? Can somebody help me out with this one? I already tried to rebuild the rpm database with rpm --rebuilddb Vincent - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
hello vinzent, you dont have any problem with you're rpm-database or any other problems with the software ... to uninstall a package you've to name the package with versionnumber ... you can't only name the filename as they often do not include the version number so you'll jast have to make a "rpm -q [packagename]" then you see the exact name of the packege and that's the name you have to use for uninstalling. greetz Andreas Hupfau _______ / LINUX \ | @work / \________ homepage: <A HREF="http://www.linuxatwork.at"><A HREF="http://www.linuxatwork.at</A">http://www.linuxatwork.at</A</A>> contact: Andreas.Hupfau@linuxatwork.at On Fri, 8 Jan 1999, Vincent van't Hoog wrote:
I have run intro some problems with RPM on my suse 5.3 linux box
When I install a RPM with
rpm -i rpmfilename.rpm
everythings OK.
When I want to query the installed rpm or delete the installed rpm
(with rpm -e rpmfilename.rpm or wpm -e rpmfilename)
I got a message saying that it cannot be done since the file is NOT installed. When I do a rpm -i filename.rpm again, I got a message saying that the package is already installed. The files are on my system, so they are installed.
What's going on? Can somebody help me out with this one? I already tried to rebuild the rpm database with rpm --rebuilddb
Vincent
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Vincent van't Hoog wrote:
I have run intro some problems with RPM on my suse 5.3 linux box
When I install a RPM with
rpm -i rpmfilename.rpm
everythings OK.
When I want to query the installed rpm or delete the installed rpm
(with rpm -e rpmfilename.rpm or wpm -e rpmfilename)
I got a message saying that it cannot be done since the file is NOT installed. When I do a rpm -i filename.rpm again, I got a message saying that the package is already installed. The files are on my system, so they are installed.
What's going on? Can somebody help me out with this one? I already tried to rebuild the rpm database with rpm --rebuilddb
Vincent
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Can you post the output of what you're doing so we can see how you're typing in the commands? For example, if I wanted to know what version of svgalib I have, I type: # rpm -q svgalib and get: vgalib-1.3.0-4 o then, if I want to remove that package from my system I'd type rpm -e svgalib-1.3.0-4 and it will be uninstalled. -- __ _ Mark Wagnon -o) / / (_)__ __ ____ __ Chula Vista, CA /\\/ /__/ / _ \/ // /\ \/ / <A HREF="mailto:mwagnon@ixpres.com">mailto:mwagnon@ixpres.com</A> _\_v____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Vincent van't Hoog wrote:
I got a message saying that it cannot be done since the file is NOT installed. When I do a rpm -i filename.rpm again, I got a message saying that the package is already installed. The files are on my system, so they are installed.
I find that if I use "rpm -qp <rpm filename>" it gives me the package name whether it is installed or not. Then I use that package name in subsequent commands like "rpm -qs <package name>" that gives the status of the files in the package. -- Steve Crane stevec@netlane.com <A HREF="http://www.datapro.co.za/~stevec"><A HREF="http://www.datapro.co.za/~stevec</A">http://www.datapro.co.za/~stevec</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Fri, 8 Jan 1999, Vincent van't Hoog wrote:
I have run intro some problems with RPM on my suse 5.3 linux box When I install a RPM with rpm -i rpmfilename.rpm everythings OK. When I want to query the installed rpm or delete the installed rpm (with rpm -e rpmfilename.rpm or wpm -e rpmfilename) I got a message saying that it cannot be done since the file is NOT installed. What's going on? Can somebody help me out with this one? I already tried to rebuild the rpm database with rpm --rebuilddb
Hi Vincent. It's cause of how you are doing it. RPM doesn't grep the name. You have to hit it right on or you get rejected. For instance, if I install fetchmail-4.75.rpm I might do: rpm -Uvh fetchmail*rpm and it'll install. but to REMOVE it I just do rpm -e fetchmail, NOT rpm -e fetchmail.rpm or rpm -e fetchmail-4.75.rpm. You shouldn't need to rebuilddb as you _do_ have the packages properly installed. It's just in UNINSTALLING or QUERYING packages you specify the program name _not_ the extension, usu. If you ever have doubts about the package name try this: Say I have a file called grabstat that grabs mailstatistics that I want to remove and don't know the filename, I just do: rpm -qa | grep grab This will give me output of all the files with grab in the name in the rpmdb and then once I have the nameI can rpm -e grabstat and it's gone. So, as a rule, to install rpms you specify the fullname. If you are not in the directory holding the rpm you also include the path. But to remove or query a package you just specify it's name as I said above and usually don't need to use it's extension or version number: again: rpm -Uvh <optional patch>/fetchmail-4.75.rpm ( install me) and: rpm -e fetchmail ( remove me) and: rpm -qil fetchmail | more. ( query me . I am installed.) and: rpm -qipl fetchmail | more ( query me. I am onboard but not installed. I want to see what I'd be if I _was_installed.) Hope this helps. Cheers, -M - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (5)
-
Andreas.Hupfau@linuxatwork.at
-
hekate@intergate.bc.ca
-
hoog@zeelandnet.nl
-
mwagnon@ixpres.com
-
tux@datapro.co.za