Installing rpm's rpm without... rpm!
Be extra careful with the following instructions.
Download (or copy from the original FC cd/dvd) the rpm-4.4.1-21.i386.rpm package (I assume here that you are using FC4 - if not, search for the package suited for your distro version; the rest of the procedure is the same).
Download this script and make it executable (chmod 775 rpm2cpio.sh)
http://www.rpm.org/tools/scripts/rpm2cpio.sh
Copy the script and the rpm-4.4.1-21.i386.rpm package in the / directory - that is, in the top directory of the filesystem.
From the / directory, run the following command as root:
Code:
./rpm2cpio.sh rpm-4.4.1-21.i386.rpm | cpio -ivd
This will extract the files from the rpm-4.4.1-21.i386.rpm package and place them in the right directories, as if you installed it with the rpm command, but without updating the rpm database nor executing any postinstall script. You can find a description of the command here
http://www.rpm.org/max-rpm/s1-rpm-mi...-rpm2cpio.html
and I strongly suggest that you read it.
The pre- and post-install script are described in the attached file, that I extracted from the rpm-4.4.1-21.i386.rpm package. You have to run them manually in a console window.
At the end, as extra security option, you could run
Code:
rpm -ivh --force rpm-4.4.1-21.i386.rpm
This should install rpm over itself, updating the rpm database and executing the pre- and post-install scripts as usual.
Last edited by daneel971; 4th September 2005 at 10:56 AM.
Reason: added attachment
- Captain...
- Yes, Spock?
- I can't believe my ears...