rpm overwriting config files again
Elan Ruusamäe
glen at pld-linux.org
Mon May 25 15:01:05 CEST 2015
again rpm is ovewriting existing files, not creating them as .rpmnew
when the file is "new" in the package itself.
imho this got solved at least in 4.5...
scenario:
1. foo.conf is present in filesystem, but not in package v1.0
2. package v1.1 contains foo.conf as %config(noreplace) %verify(not md5
mtime size)
3. upgrade package v1.0 -> v1.1 ovewrites foo.conf, not creating
foo.conf.rpmnew
rpm-5.4.15-6.x86_64
log from such system:
# md5sum /etc/nagios/nrpe.d/commands.cfg
a57588d1e0fb022e0e0bd5945d4ddeb1 /etc/nagios/nrpe.d/commands.cfg
# rpm -qf /etc/nagios/nrpe.d/commands.cfg
file /etc/nagios/nrpe.d/commands.cfg is not owned by any package
Executing rpm --upgrade -vh --root / --define _check_dirname_deps 1...
Preparing... ########################################### [100%]
1:nagios-nrpe warning: /etc/nagios/nrpe.cfg created as
/etc/nagios/nrpe.cfg.rpmnew
########################################### [100%]
# rpm -qfc /etc/nagios/nrpe.d/commands.cfg
/etc/nagios/nrpe.cfg
/etc/nagios/nrpe.d/commands.cfg
# md5sum /etc/nagios/nrpe.d/commands.cfg
2e4e27f09f7e1efa04c121c6658536a1 /etc/nagios/nrpe.d/commands.cfg
# ls -l /etc/nagios/nrpe.d/commands.cfg*
-rw-r----- 1 root nagios 1.8K May 25 15:43 /etc/nagios/nrpe.d/commands.cfg
--
glen
More information about the pld-devel-en
mailing list