LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Uninstalling rpm's (https://www.linuxquestions.org/questions/linux-software-2/uninstalling-rpms-190455/)

zWaR 06-06-2004 06:07 PM

Uninstalling rpm's
 
Hello.

I have problems uninstalling rpm's packages.

I installed a package.rpm using this command: rpm -i package.rpm all went smooth.
Now, i'd like to uninstall it. I tried using rpm -e package.rpm , but the answer was: package.rpm is not installed

??

What am i doing wrong?
(btw: i'm using FC2).

10x 4 help!

jailbait 06-06-2004 06:26 PM

"What am i doing wrong?"

When you install you use the complete file name in the rpm -i command.
rpm -i package-xx-xx.rpm

When you uninstall you use just the package name in the rpm -e command. Try:
rpm -e package

If you don't know the exact spelling of the package name use:
rpm -qa | sort | less
to get an alphabetical list of your package names.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Boow 06-06-2004 11:34 PM

rpm -e rpmname dont add the .rpm at the end leave it out.

zWaR 06-07-2004 01:38 PM

10x guys!!

k41184 06-30-2004 08:34 AM

Same problem unistalling java
 
I am having a very similar problem. I am trying to unistall the package j2re-1_4_2_04-linux-i586.rpm . The RPM -i command tells me the package is installed. Yet using rpm -e j2re-1_4_2_04-linux-i586 will not remove it, saying the package is not installed. I have also tried rpm -e --force -nodps j2re-1_4_2_04-linux-i586. Any other ideas how to remove and rpm that is there but the comptuer thinks is not? I am using FCII, fully updated

kevinlyfellow 07-18-2004 08:17 AM

Me too, it will not allow me to query or anything, yet when I try to install it after I try to uninstall it, it tells me package is already installed. I know there is a system log that keeps track of all the rpms installed on the system, maybe it needs to reference to that and its getting the wrong location. But I never changed that before and it worked at one time. Anyone know what's going on?

Proud 07-18-2004 08:23 AM

The package name might not be exactly the same as the filename minus the .rpm end. Try to find it in a gui package manager, or try some variation like j2re-1_4_2_04.


All times are GMT -5. The time now is 03:24 AM.