Red Hat Bugzilla – Bug 82060
rpm does not preserve modified binaries when upgrading packages
Last modified: 2007-04-18 12:50:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3; Linux)
Description of problem:
I had Amanda installed on a 7.3 system and had replaced its /usr/lib/amanda/taper program with a locally modified version. I had expected that when upgrading to RHL 8.0, that rpm would have either skipped upgrading that package because it contains a modified binary (whose checksum does not match the installed version) or at least moved it to a .rpmsave file. Instead, RPM upgraded Amanda and overwrite the modified binary.
Shouldn't RPM be a little friendlier in this circumstance?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install a package.
2. Change a binary managed by the package (say, in /usr/bin).
3. Upgrade that package. Notice that the modified binary is lost.
Actual Results: The modified binary is overwritten with the corresponding one from the new package.
Expected Results: The modified binary should have been renamed.
rpm does package, not file, management. That means that
files are installed from packages.
If you want to preserve your own binaries, then
uninstall the package before building your own
amanda from sources.