Tried to update rpm-3.0.3-0.12.i386.rpm to rpm-3.0.3-0.14.i386.rpm with the rpm -U rpm-3.0.3-0.14.i386.rpm command. The command resulted in an uninstallation of the rpm-package instead of an upgrade, including the rpm-database (!!!). Would appreciate any hint in how to re-install rpm and re-build the rpm-database.
You will need to get a tarball containing an rpm binary from ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/rpm-3.0.2-6.0.i386.tar.gz Then do (as root) cd /var/tmp tar xzvf rpm-3.0.2-6.0.i386.tar.gz cp ./bin/rpm /bin/rpm mkdir -p /usr/lib/rpm cp ./usr/lib/rpm/* /usr/lib/rpm You should then reinstall rpm from an whatever version of the package you wish to run. Your database should be fine.