A question???
Why are you even trying to back up the rpm database when the program "rpm" is not working ??
if it is not working you can NOT update the rpm database
IF yum and rpm ever worked ( i do not know if they ever did )
if they DID in the past work then you did "something" most likely installed something that was VERY incompatible
( rpmforge and random rpms from the net can do this )
if they NEVER worked
something is VERY
VERY WRONG with the install
and the TWO programs needed to fix it are NOT WORKING
i would reinstall with CentOS 6.3
seeing as you would have HAD to upgrade cent anyway , with 6.2 now past it's END OF LIFE
one thing you can try is this
but it is NOT going to fix it
you "should get a very long output
at the beginning though will be something that looks like this
Code:
execve("/bin/rpm", ["rpm"], [/* 97 vars */]) = 0
brk(0) = 0x604000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x????c????000
if there is then it is installed but broken