2

What happens at rpm -U .. if any file of the package being updated has been modified? Is it left updated with a new one, or the new (modified) file is kept with new extension?

Mark
  • 6,052
  • 8
  • 61
  • 129
  • @Rob sorry but 839 questions disagree with you https://stackoverflow.com/questions/tagged/rpmbuild . Yes, there are more on the Unix.SE but plenty here too. – Aaron D. Marasco Oct 04 '22 at 21:08

1 Answers1

1

RPM will overwrite any files that have changed unless they are explicitly designated as "configuration" files using the %config flag. Then it will make a copy of either the new one (*.rpmnew) or the old one (*.rpmsave) based on whether or not the config file is flagged as noreplace. See this reference for more details.

Aaron D. Marasco
  • 6,506
  • 3
  • 26
  • 39