Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown    



CORRUPT RPM DATABASE:


Strange things sometimes happen, one of them is a corrupt rpm database. This means that the computer tells you something is installed and it really is not.
Here is how to solve this problem.

First backup and then delete by doing the following command:

CODE
$ su
< password >
# cp /var/lib/rpm/__db.001 /home/bruno
# rm /var/lib/rpm/__db.001


and

CODE
# cp /var/lib/rpm/__db.002 /home/bruno

(  NOTE:  ¨__¨ is 2x¨_¨  !!! )

CODE
# rm /var/lib/rpm/ __db.002


then:

CODE
# rpm –rebuilddb




In case your urpmi database is locked you can do:

CODE
# rm -f /var/lib/urpmi/.LOCK



A little reminder: the urpmi database ( install on demand ) needs to be updated at least once a month. See to in that you are connected to the internet for this one and :

CODE
# urpmi.update -a



Bruno


-- Jul 10 2003 ( Revised Dec 02 2007 ) --


Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown