I realize that this is way to late for mrtheduke
, and sadly, I don't think it will help dburgess
. But I am posting it anyway for people that stumble onto this thread in the future.
If you can find a rescue disk or live CD with rpm
on it (KNOPPIX has both rpm
) and you can download or otherwise obtain the rpm for the rpm package, then you should be able to fix your system using the --root
option for rpm
. At least according the author of Knoppix Hacks
, Kyle Rankin; while I have used --root for fixing other packages, I have not done it for the rpm package itself. It would be a good idea to backup anything valuable first. (You can also do a dry run first using the --test option.)
Assuming you have mounted your main partition on /dev/sda1 (adjust the following command if using a different mount point), and if the rpm to be installed is in your current directory, as root type:
rpm --root /mnt/sda1 -i name-of-rpm.rpm
If the rpm is elsewhere, say on the rescue disk you are using, just add the correct path before the filename.
For Debian like systems, dpkg
also has a --root option that is used in the same way.