hmm, try just rpm -qa
This should list all the packages installed on your system.
After the power failure I presume that you booted to single user and ran:
fsck /
and corrected any errors.
Check the /var/lib/rpm folder (see if it exists and if it has any contents). If either of these assertions are false then run the following (perhaps do it anyway to be sure):
a) chown rpm:rpm /var/lib/rpm (set folder ownership to rpm)
b) chmod 755 /var/lib/rpm (set permission on folder)
c) chown root:root /var/lib/rpm/* (set file ownership in folder to root)
d) chmod 644 /var/lib/rpm/* (set permission on files in folder)
Use Midnight Commander (mc at the prompt) if you find it easier.
This is how my SME 6.0 is setup by default. The list of files in the folder should be the same or very similar:
-rw-r--r-- 1 root root 1351680 Feb 25 04:06 Basenames
-rw-r--r-- 1 root root 12288 Feb 25 04:06 Conflictname
-rw-r--r-- 1 root root 356352 Feb 25 04:06 Dirnames
-rw-r--r-- 1 root root 1323008 Feb 25 04:06 Filemd5s
-rw-r--r-- 1 root root 12288 Feb 25 04:06 Group
-rw-r--r-- 1 root root 12288 Feb 25 04:06 Installtid
-rw-r--r-- 1 root root 24576 Feb 25 04:06 Name
-rw-r--r-- 1 root root 8142848 Feb 25 04:06 Packages
-rw-r--r-- 1 root root 94208 Feb 25 04:06 Providename
-rw-r--r-- 1 root root 40960 Feb 25 04:06 Provideversion
-rw-r--r-- 1 root root 69632 Feb 25 04:06 Requirename
-rw-r--r-- 1 root root 53248 Feb 25 04:06 Requireversion
-rw-r--r-- 1 root root 45056 Feb 25 04:06 Sha1header
-rw-r--r-- 1 root root 24576 Feb 25 04:06 Sigmd5
-rw-r--r-- 1 root root 12288 Feb 25 04:06 Triggername
If you dont have these files then you need to acquire them for your version (perhaps you could do a base install on a test system and them send them to the remote site).
If not, I would suggest that an 'upgrade' install over the top of your current setup may be the only way to resolve this; educated guess.
An upgrade install could be done by an end user with instruction over the phone as it requires no setup from them.
I am now officially out of ideas, good luck
