Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-24-2004, 04:31 AM   #1
Registered: May 2004
Distribution: Fedora Core 6
Posts: 36

Rep: Reputation: 15
Rpm database files

I've lost my rpm database (no back-up).
When I try to use up2date I get the following messages:

Retrieving list of all available packages...
Traceback (innermost last):
File "/usr/sbin/up2date", line 859, in ?
File "/usr/sbin/up2date", line 834, in main
sys.exit(batchRun(onlyList, pkgNames, fullUpdate))
File "/usr/sbin/up2date", line 460, in batchRun
printCallback, percentCallback)
File "/usr/share/rhn/up2date/", line 1709, in getUpdatedPackageList
File "/usr/share/rhn/up2date/", line 1387, in removeInstalledPackagesFromList
installedPkgList = getInstalledPackageList()
File "/usr/share/rhn/up2date/", line 1351, in getInstalledPackageList
key = db.firstkey()
rpm.error: cannot find first entry in database

I would like to copy a small rpm database, that is, the files
Basenames Group Packages Requirename
Conflictname Name Providename Triggername
from somewhere so I can start reconstructing the entire database.
Where can I find them? Or, alternatively, can I construct the file manually? What do the contents of those files look like?

Any help would be much appreciated.
Old 10-24-2004, 11:02 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Try running:
rm -f /var/lib/rpm/__db*
rpm --rebuilddb


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
RPM database, help! Thetargos Fedora 2 07-30-2004 05:47 PM
rpm database palmmjsg23 Linux - General 6 03-09-2004 11:58 PM
RH rpm database gfyspf Red Hat 1 09-17-2003 10:39 AM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
RPM database dead, HELP !!! qwijibow Linux - Newbie 1 05-26-2003 01:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 AM.

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