Bugzilla – Bug 144218
rpm doesn't create .rpmnew for config files
Last modified: 2006-01-20 19:09:05 UTC
rpm no longer creates .rpmnew files for changes config files. gab:/srv/ftp/pub/samba # rpm -V samba-client S.5....T c /etc/samba/smb.conf gab:/srv/ftp/pub/samba # ls -l /etc/samba/smb.conf* -rw-r--r-- 1 root root 2531 2006-01-17 23:50 /etc/samba/smb.conf -rw-r--r-- 1 root root 1916 2005-03-11 18:39 /etc/samba/smb.conf.begin -rw-r--r-- 1 root root 1192 2006-01-19 21:53 /etc/samba/smb.conf.rpmnew gab:/srv/ftp/pub/samba # rm /etc/samba/smb.conf.rpmnew gab:/srv/ftp/pub/samba # rpm -Fvh samba-client-3.0.21a-4.9.i586.rpm warning: samba-client-3.0.21a-4.9.i586.rpm: Header V3 DSA signature: NOKEY, key ID 414a57c3 Preparing... ########################################### [100%] 1:samba-client ########################################### [100%] Updating etc/sysconfig/network/dhcp... gab:/srv/ftp/pub/samba # rpm -q rpm rpm-4.4.2-9 gab:/srv/ftp/pub/samba # ls -l /etc/samba/smb.conf* -rw-r--r-- 1 root root 2531 2006-01-17 23:50 /etc/samba/smb.conf -rw-r--r-- 1 root root 1916 2005-03-11 18:39 /etc/samba/smb.conf.begin
Looks correct to me. What did you expect?
I expected: 1:samba-client warning: /etc/samba/smb.conf created as /etc/samba/smb.conf.rpmnew ########################################### [100%] But today it works again. So invalid is right.
It'll only create it if the versions in the old and new rpms contain different files. If they are the same, the changed on-disk file is left intact.