LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-22-2011, 07:13 AM   #1
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Rep: Reputation: 24
rebuild rpm fails


Dear ones,

I using CentOS-5.5 and having problem with rpm command.
rpm -qa does not display anything.
rpm --rebuilddb does not reply anything. If i put -vv option it display below contents.

Quote:
[root@kbuilder ~]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.2713
D: creating directory /var/lib/rpmrebuilddb.2713
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
D: opening db index /var/lib/rpm/Packages create mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.2713/Packages create:mpool
D: opening db index /var/lib/rpmrebuilddb.2713/Packages create mode=0x42
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.2713/Packages
D: closed db environment /var/lib/rpmrebuilddb.2713/Packages
D: removing directory /var/lib/rpmrebuilddb.2713
D: May free Score board((nil))
I am not able install any rpm archive. There is only a single file Packages in /var/lib/rpm/ directory.

I have tries rpm --initdb but failed.

What should I do ?
 
Old 06-22-2011, 07:36 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Quote:
There is only a single file Packages in /var/lib/rpm/ directory
.. sounds bad. You'll probably need to reinstall rpm itself by booting on install media into rescue mode then 'rpm -Uvh --root /mnt/sysimage <path_to_packages>/rpm-*' .. you may need '--force' if it complains.
 
  


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
RAID1 array rebuild fails at 99.9% recovery apomatix Linux - Hardware 3 06-06-2008 06:30 AM
BestCrypt 1.5.5 rebuild fails on SuSE 9.1 [repost] szr Linux - Software 16 08-12-2004 09:45 AM
BestCrypt 1.5.5 rebuild fails on SuSE 9.1 szr Linux - Newbie 1 06-23-2004 08:08 AM
ALSA RPM rebuild fails, other compilation problems abro Linux - Software 3 12-09-2003 07:34 PM
BestCrypt installation problem (Rebuild fails) alacos Linux - Software 1 11-04-2003 05:34 PM

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

All times are GMT -5. The time now is 07:28 PM.

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