My guess is you're screwed. However, here's what you can try:
- Get a copy of nss RPMs. Probably both 32- and 64-bit if you're on the latter.
rpm2cpio nss.rpm | cpio -div
from the root of the machine. That will put at least the libraries, etc. into the right places.- If you can now run
rpm
, re-install the RPMs. That way the DB will have it, and any pre/post scripts will execute. - Remember not to use
--force
again unless you really know it's OK.
If that doesn't work, you might be able to boot from a rescue CD and do the same from the mounted hard drive, e.g. /mnt/sysimage/
.