LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   (half)deleting rpms (https://www.linuxquestions.org/questions/linux-newbie-8/half-deleting-rpms-104841/)

grbrg 10-16-2003 03:54 PM

(half)deleting rpms
 
What I wanted to do was the following: delete an rpm to install an older version of it. The problem is: rpm froze midway through deleting the package, and after half an hour I had to kill it. Now whenever I want to delete it I get an error message:

error: cannot get an exclusive lock on /var/lib/rpm/Packages
(and two other error messages, that seem to follow this one)

What can I do about this? Force deletion somehow? Force overwrite?
Thanks for any help!

jdc2048 10-16-2003 06:10 PM

Try doing the following;

rm /var/lib/rpm/__db*
kill any rpm commands that are running
then try removing again

grbrg 10-17-2003 05:23 AM

I did try that, but keep getting the same errors... :(

vivekiyer 10-17-2003 08:19 AM

well
1. are u doing this as root?
2. are u using the rpm --erase option to remove the rpm?

grbrg 10-17-2003 10:22 AM

Interestingly, I tried it as root but used the "-e" option instead of "--erase". With --erase it works, thanks! :) Though I wonder what the difference is... :newbie:


All times are GMT -5. The time now is 10:55 PM.