I have an rpm with a file marked as config file in the %files section:
%files
%config /path/to/file.conf
now suppose I edit this file on-disk. I wish to repair this and redo a clean install of the package; thus restoring the config file to its original state; using
zypper in -f my-package
after doing this; the config file is still in its edited version. If it was not a reinstall but an update (with an rpm containing a changed version!); then rpm would have moved my edited file to /path/to/file.conf.rpmsave and reinstalled the new one.
What are my options to circumvent this problem? Is this normal behavior? If I was using rpm; I suppose I could use rpm -if my-package.rpm --replacefiles
; but that option does not exist for zypper.
PS I use this page for reference.