Topic: Bug in php56-runtime 2.3-1.el7 @remi-safe ?
I'm unable to upgrade package php56-runtime from remi-save repository.
# yum upgrade
...
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
php56-runtime x86_64 2.3-1.el7.remi remi-safe 1.1 M
Transaction Summary
================================================================================
Upgrade 1 Package
Total download size: 1.1 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
php56-runtime-2.3-1.el7.remi.x86_64.rpm | 1.1 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : php56-runtime-2.3-1.el7.remi.x86_64 1/2
Error unpacking rpm package php56-runtime-2.3-1.el7.remi.x86_64
error: unpacking of archive failed on file /etc/opt/remi/php56: cpio: rename
php56-runtime-2.1-5.el7.remi.x86_64 was supposed to be removed but is not!
Verifying : php56-runtime-2.1-5.el7.remi.x86_64 1/2
Verifying : php56-runtime-2.3-1.el7.remi.x86_64 2/2
Failed:
php56-runtime.x86_64 0:2.1-5.el7.remi php56-runtime.x86_64 0:2.3-1.el7.remi
I store configs in /etc/opt/remi/php56 as I prefer this to /opt location.
# ls -al /etc/opt/remi/php56
total 96
drwxr-xr-x 4 root root 4096 Apr 26 2016 .
drwxr-xr-x 3 root root 4096 Oct 9 18:40 ..
drwxr-xr-x 2 root root 4096 Oct 8 04:24 php.d
-rw-r----- 1 root root 4128 Mar 31 2016 php-fpm.conf
drwxr-xr-x 2 root root 4096 Jul 18 02:48 php-fpm.d
-rw-r----- 1 root root 72425 Apr 26 2016 php.ini
Every failed upgrade of php56-runtime ends with yet another symbolic link in /etc/opt/remi:
# ls -al /etc/opt/remi/
total 12
drwxr-xr-x 3 root root 4096 Oct 9 18:40 .
drwxr-xr-x. 3 root root 4096 Nov 5 2016 ..
drwxr-xr-x 4 root root 4096 Apr 26 2016 php56
lrwxrwxrwx 1 root root 24 Oct 8 04:23 php56;59d98b0d -> /opt/remi/php56/root/etc
lrwxrwxrwx 1 root root 24 Oct 8 04:29 php56;59d98d83 -> /opt/remi/php56/root/etc
lrwxrwxrwx 1 root root 24 Oct 8 04:32 php56;59d98e4e -> /opt/remi/php56/root/etc
lrwxrwxrwx 1 root root 24 Oct 9 18:34 php56;59dba51e -> /opt/remi/php56/root/etc
lrwxrwxrwx 1 root root 24 Oct 9 18:40 php56;59dba689 -> /opt/remi/php56/root/etc
Is this a bug?
Shouldn't package installer handle this somehow?
I do I fix this keeping my configs under /etc structure?
Thanks in advance.