Rpm upgrade handling of config files

前端 未结 1 1908
梦谈多话
梦谈多话 2021-02-04 03:07

I\'m playing around with the rpm -upgrade command and noticed rpm has different ways of handling modified configuration files so it doesn\'t get lost during the upgrade. From wh

相关标签:
1条回答
  • 2021-02-04 03:21

    This is the intended behaviour. If you want the configuration file to never get overwritten (and moved to .rpmsave), use %config(noreplace) instead of %config in the rpm .spec file, and the file won't be replaced. Instead, the new file from the rpm package will get created as .rpmnew, and the one there is left alone.

    0 讨论(0)
提交回复
热议问题