I have created a RPM package and it is uploaded to my local yum repository. When I (or future user) install + edit config files of the package and then remove the package (
yum remove <package>) config files are renamed or removed.
%files %defattr(-, root, root, -) %dir /etc/something /etc/something/someA.conf # removed %config /etc/something/someB.conf # removed %config(noreplace) /etc/something/someC.conf # renamed => someC.conf.rpmsave
If user remove or update the package, I want to keep modified config files unchanged. How can I do that? Thnaks.