Once upon a time, Andrew C Aitchison andrew@aitchison.me.uk said:
On Wed, 8 Jun 2022, Maxwell G via epel-devel wrote:
On Wednesday, June 8, 2022 2:54:51 PM CDT Michel Alexandre Salim wrote:
without messing with config files (which I hate, because that means newer crb.repo changes won't be picked up).
I thought files marked `%config(noreplace)` don't get updated automatically even if the user didn't modify it all. Am I missing something or are we talking about different things?
My understanding is that those files *do* get updated if they have not been modified.
That's correct - unmodified files will still be updated by RPM.
This new idea will let you make a change to the config without blocking updates from making non-conflicting changes.
This would even be good to use for enabling/disabling repos, again so that a URL change or such would still be applied.
Long term, it might be ideal to treat the RPM-distributed repo files as read-only and move them to something like /usr/share/yum.repos.d, with only local changes (enable/disable, exclude, alternate mirror/baseurl) in /etc/yum.repos.d.