LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cli:rpm question (https://www.linuxquestions.org/questions/linux-software-2/cli-rpm-question-135273/)

king_nothingzzz 01-15-2004 09:32 PM

cli:rpm question
 
Hi

I have this problem from quite sometime. I have tried many things but in vain.

Here goes..

When i install a rpm package, i use rpm -Uvh xyz.rpm (i use U instead of i, coz both install anyways) and it gets installed properly (lets assume that there were no dependency failures)

When i want to remove a package, ie..when i try rpm -e --allmatches --nodeps xyz.rpm i get the following error
error: package xyz.rpm is not installed

Since it said that the package was not installed, i tried rpm -Uvh xyz.rpm, it says package already installed.

I tried with rpm -iv xyz.rpm, says package already installed.

I know that there is a fundamental problem in the way i use these commands, but i am not able to figure out what is wrong :scratch:. I am not able to erase any package that i have installed.

When i use the '--force' option while installing, upgrading it works, as in, it gets installed

I appreciate any suggestion

Thanks

King Nothing

ashamril 01-16-2004 12:28 AM

just rpm -e xyz
if u not sure try rpm -qa|grep xyz

king_nothingzzz 01-16-2004 12:54 AM

No use.

tried grep, returns nothing, but when i try to install the same package again, says package already installed

King Nothing


All times are GMT -5. The time now is 08:37 PM.