Score:0

Can you force replacement of files marked %config in RPMs

ck flag

If files in RPMs are marked %config or %config(noreplace)¹, running something like dnf update or yum update will not touch (modified) configuration files, but leave the old ones in place and create .rpmsave or .rpmnew files instead.

Is it possible to tell dnf, … to always replace all configuration files, discarding changes and forcing updates of all files?

Score:0
cn flag

No, dnf or yum has no options I am aware of to alter what the %config directive in the spec says. Packaging convention around RPM is to assume the user intended edits.

Find those .rpmnew and .rpmsave files. Those with ".rpmnew", or without ".rpmsave", are from the updated package.

A more complete check, including changed files that haven't been updated yet, can be done with rpm verify options. rpm -qaV --configfiles will look at all installed package config files for differences.

If unintended edits are happening, consider locking things down. Remove write file permissions on files. Remove interactive user access by people into systems, especially privileged.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.