LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-24-2004, 05:31 AM   #1
Janneman
Member
 
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 ?
main()
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/up2date.py", line 1709, in getUpdatedPackageList
progressCallback)
File "/usr/share/rhn/up2date/up2date.py", line 1387, in removeInstalledPackagesFromList
installedPkgList = getInstalledPackageList()
File "/usr/share/rhn/up2date/up2date.py", 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.
Janneman.
 
Old 10-24-2004, 12:02 PM   #2
david_ross
Moderator
 
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
 
  


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


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