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. |
Try running:
rm -f /var/lib/rpm/__db* rpm --rebuilddb |
All times are GMT -5. The time now is 09:46 PM. |