December 2015
Intermediate to advanced
250 pages
4h 41m
English
Although everything is done to ensure that your RPM databases are intact, your RPM database may become corrupt and unuseable. This happens mainly if the filesystem on which the rpm db resides is suddenly inaccessible (full, read-only, reboot, or so on).
This recipe will show you the two ways in which you can attempt to restore your RPM database.
Verify that your system is backed up in some way.
We'll start with the easiest option and the one with the highest success rate in these steps:
rpm db, as follows:
~]# cd; tar zcvf rpm-db.tar.gz /var/lib/rpm/*
~]# rm -f /var/lib/rpm/__db* ...Read now
Unlock full access