LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2003, 04:54 PM   #1
grbrg
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 21

Rep: Reputation: 15
(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!
 
Old 10-16-2003, 07:10 PM   #2
jdc2048
Member
 
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
Try doing the following;

rm /var/lib/rpm/__db*
kill any rpm commands that are running
then try removing again
 
Old 10-17-2003, 06:23 AM   #3
grbrg
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
I did try that, but keep getting the same errors...
 
Old 10-17-2003, 09:19 AM   #4
vivekiyer
Member
 
Registered: Aug 2003
Location: AZ, USA
Distribution: Redhat 9.0
Posts: 45

Rep: Reputation: 15
well
1. are u doing this as root?
2. are u using the rpm --erase option to remove the rpm?
 
Old 10-17-2003, 11:22 AM   #5
grbrg
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to intall rpms from .tar.bz and .tar.gz and .src.rpms gadekishore Linux - Software 13 12-26-2005 03:57 PM
how do I install half windows98 half linux? xandar Linux - General 3 09-07-2005 04:23 AM
Half way there Newix LinuxQuestions.org Member Intro 2 07-29-2004 06:28 PM
Half way there! mrnikeswsh Linux - Security 3 08-27-2003 07:31 PM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 01:38 PM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration