LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2003, 01:43 PM   #1
Null
Member
 
Registered: Dec 2002
Distribution: Debian Woody SID
Posts: 52

Rep: Reputation: 15
RPM was gone, Now it's back Though it might as well be gone


Alright, first off this is a RedHat 7.3 system. I was working with checkinstall and inadvertently ran a checkinstall on an rpm (longer story). So basically checkinstall seems to have removed rpm and now I can't get it working again.

First I tried copying /bin/rpm from another system, no luck there.
Next I tried the following in the rescue prompt (cd boot) to reinstall:
Quote:
rpm -ivh rpm* -r /mnt/sysimage/
The install was successful according to the cd's rpm. But when I try either of the following commands:
Quote:
rpm --initdb
rpm --rebuilddb
I get a nice "error: unrecognized db option: "db3" ignored." error. This also occurs if I try an rpm -qa or any kind of rpm command. Frankly, I'm stumped at this point. Aside from "upgrading" redhat with the same version and hoping it fixes it, I'm out of ideas.
 
Old 03-02-2003, 03:55 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Re: RPM was gone, Now it's back Though it might as well be gone

Quote:
Originally posted by Null
Alright, first off this is a RedHat 7.3 system. I was working with checkinstall and inadvertently ran a checkinstall on an rpm (longer story). So basically checkinstall seems to have removed rpm and now I can't get it working again.

First I tried copying /bin/rpm from another system, no luck there.
Next I tried the following in the rescue prompt (cd boot) to reinstall:


The install was successful according to the cd's rpm. But when I try either of the following commands:


I get a nice "error: unrecognized db option: "db3" ignored." error. This also occurs if I try an rpm -qa or any kind of rpm command. Frankly, I'm stumped at this point. Aside from "upgrading" redhat with the same version and hoping it fixes it, I'm out of ideas.
you need to check
/var/log/rpmkeys
and
/var/lib/rpm
to see whether they exist
now do a rebuilddb
it should work
 
  


Reply



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
Moving back an rpm packages revision louisb Linux - Enterprise 3 07-09-2005 04:24 AM
Back button to Go Back? javamdk Linux - Newbie 2 07-08-2004 11:34 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
How to roll back to an old RPM source? scahrossar Linux - Newbie 1 10-08-2003 01:34 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:55 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
Open Source Consulting | Domain Registration