%config directive
I am looking for similar behavior. I have read the following from the Max Rpm documentation.
"The %config Directive
The %config directive is used to flag the specified file as being a configuration file.
RPM performs additional processing for config files when packages are erased, and
during installations and upgrades. This is due to the nature of config files: They are
often changed by the system administrator, and those changes should not be lost.
There is a restriction to the %config directive, and that restriction is that no more
than one filename may follow the %config. This means that the following example
is the only allowable way to specify config files:
%config /etc/foonly"
|