rpm -Uhv --oldpackage loses configs

Elan Ruusamäe glen at pld-linux.org
Tue Jun 7 20:42:47 CEST 2016

On 07.06.2016 21:18, Jeffrey Johnson wrote:
> And to support —downgrade meaningfully, I need a “reproducible” test case with toy packages.

the toy packages:
http://carme.pld-linux.org/~glen/rpm-repackage-bug-pam-files.tar.xz 1,4M

contents obtained with:
$ docker run -it -v `pwd`:/tmp --rm  glen/pld poldek --fetch=/tmp -u pam 
pam-libs --noask --force
$ docker run -it -v `pwd`:/tmp --rm  glen/pld poldek --fetch=/tmp -u pam 
pam-libs --noask --force -n th-2015

however you can (to my understanding) create the packages yourself:

1. create package v1.1 having %config(noreplace) %verify(not md5 mtime size)
2. create package v1.2 having %config(noreplace) %verify(not md5 mtime size)

1. install package v1.2
2. install packages v1.1 and v1.2 with rpm -Uv --oldpackage

between 1-2 may need to alter the config file, but afaik not neccessary


More information about the pld-devel-en mailing list