rpm5 package verification and md5sum of config files

Jan Rękorajski baggins at pld-linux.org
Tue Oct 16 08:14:13 CEST 2012


As simple as possible:

$ rpm -V wget
..5.....  c /etc/wgetrc

- rpm reports /etc/wgetrc on disk has different digest than in package

md5 of /etc/wgetrc in package:

$ rpm -qf --qf '%{FILEDIGESTS}\n' /etc/wgetrc
0dbf720f5c9d29cbad8356f758a6a889

md5 of /etc/wgetrc on disk:

$ md5sum /etc/wgetrc
0dbf720f5c9d29cbad8356f758a6a889  /etc/wgetrc

once again:

$ rpm -V wget
..5.....  c /etc/wgetrc

So, file is unchanged, yet rpm reports it as changed, and as Adam
reported this happens for any file marked as %config(), even despite
%verify(not md5). This is clearly a bug in rpm5.

-- 
Jan Rękorajski                                 | PLD/Linux
SysAdm                                         | http://www.pld-linux.org/
baggins<at>mimuw.edu.pl
baggins<at>pld-linux.org


More information about the pld-devel-en mailing list