A more succinct answer might be: get the .src.rpm, and compile your own binary for your system. That will get you your systems defaults for rpm installation.
However, before compiling the binary, edit the .spec file in /usr/src/<kernel version>/SPECS, or /usr/src/packages/SPECS in SuSE, or /usr/src/redhat/SPECS in RH. Change the defaults there, and try to compile and install a binary. If it works, you've added a milestone to your Linux experience. It it doesn't work, go to the RH website, and download a copy of RedHat's Maximum-rpm (700+ pages - all you could ever want to know about rpm). Study, learn how the spec file works, edit some more, then try again.
A couple of years ago, using another rpm based system, with webmin, I wanted to upgrade webmin, but I could only find tarballs for the version I wanted. So, since a .src.rpm is just a tarball and a spec file, I copied the spec file for the existing installation, added the tarball for the newer version, and fiddled for a couple of days until I had a version which worked if I did 'rpm -U'. It never installed correctly with 'rpm -i' if I removed the existing version first, but it worked perfectly if I did 'rpm -U' with the existing installation in place.
Damn near dislocated a shoulder patting myself on the back over that one.
|