tldr; Would it be possible to force RPM to examine physical files on disk for changes when 'upgrading' a package with -U?
Current situation:
- install rpm a1
- an application modifies files from a1.
rpm -V ashows the files being modified.- install rpm a2 (with -U: Upgrade). This rpm contains mostly the same files from a1 (it's the next version, only some files are changed)
rpm -V ashows that only some files are not restored to what was in the a2 rpm.
My best guess is that rpm compares only the md5 of the files from the already installed package a1 against files from package a2, and only when an md5 does not match it will look at the physical file. How would i force rpm to look at all files, as it does with -V ?
Example output of modified files:
/ # rpm -V a
missing c /xxx/config/xyz.ini
S.5....T c /xxx/config/foo.xml
S.5....T c /xxx/config/firmware/xx.cfw
S.5....T c /xxx/config/bar.txt
S.5....T c /xxx/config/bar.xml
rpm -qc does list them.
rpm -qc alist them? What is therpm -V aoutput exactly? - Etan Reisner.specfile which has those marked as%config/%config(noreplace)files. If that's not what you want then you get to edit/fix the spec file to not do that. Given the config file marking if those are the files that aren't being updated then RPM is doing exactly what it is told. - Etan Reisner