rpm -Uhv --oldpackage loses configs

Jeffrey Johnson n3npq at me.com
Mon Jun 6 23:00:23 CEST 2016


> On Jun 6, 2016, at 3:00 PM, Elan Ruusamäe <glen at delfi.ee> wrote:
> 
> (pld has --downgrade alias to --oldpackage via popt)
> 
> downgrading from repackage lost config files,
> i.e saved them as .rpmsave leaving original path missing
> 
> # ls -l */*pam*
> -rw-r--r-- 1 root root 326K  6. juuni 20:17 1465233457/pam-1.1.8-8.x86_64.rpm
> -rw-r--r-- 1 root root  35K  6. juuni 20:17 1465233457/pam-libs-1.1.8-8.x86_64.rpm
> 
> root at glen spool/repackage#
> root at glen spool/repackage# rpm -Uhv */*pam* --downgrade
> warning: package pam = 1:1.1.8-8 was already added, replacing with pam >= 1:1.2.1-1
> warning: package pam-libs = 1:1.1.8-8 was already added, replacing with pam-libs >= 1:1.2.1-1
> Preparing... ########################################### [100%]
> Repackaging...
>   1:pam ########################################### [ 50%]
>   2:pam-libs ########################################### [100%]
> Upgrading...
>   1:pam-libs ########################################### [ 50%]
> warning: /etc/security/namespace.init saved as /etc/security/namespace.init.rpmsave
> warning: /etc/security/limits.conf saved as /etc/security/limits.conf.rpmsave
> warning: /etc/pam.d/system-auth saved as /etc/pam.d/system-auth.rpmsave
>   2:pam ########################################### [100%]
> 
> root at glen spool/repackage# cd /etc/security/
> root at glen /etc/security# rpm -qf namespace.init
> pam-1.2.1-1.x86_64
> 
> root at glen /etc/security# mv -bi namespace.init.rpmsave namespace.init
> root at glen /etc/security# cd /etc/security/
> root at glen /etc/security# mv -bi limits.conf.rpmsave limits.conf
> root at glen /etc/security# mv -bi /etc/pam.d/system-auth.rpmsave /etc/pam.d/system-auth
> root at glen /etc/security#
> 
> # rpm -q rpm
> rpm-5.4.15-33.x86_64
> 

What exactly are you expecting?

I see rpm renaming modified %config files to *.rpmsave exactly as always, nothing more.

FWIW: there is no —downgrade in rpm, and flipping various bits in polled to disable version comparisons
and file conflicts in order to achieve “downgrade” has almost nothing to do with %config handling.

73 de Jeff
> 
> -- 
> glen
> 
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en



More information about the pld-devel-en mailing list