php5-cli only works if installed *before* php5
On a fresh Alpine 3.8 (LXD container) image:
apk add php5 php5-cli
doesn’t actually install php5-cli:
# ls -al /usr/bin/php*; apk list --installed|grep php
ls: /usr/bin/php*: No such file or directory
php5-5.6.37-r0 x86_64 {php5} (PHP-3.0) [installed]
When I delete both an then adding (only) php5-cli it works ok:
#apk del php5 php-cli; apk add php5-cli
# ls -al /usr/bin/php*; apk list --installed|grep php
-rwxr-xr-x 1 root root 8794808 Jul 24 13:54 /usr/bin/php5
-rwxr-xr-x 1 root root 4506 Jul 24 13:54 /usr/bin/phpize5
php5-cli-5.6.37-r0 x86_64 {php5} (PHP-3.0) [installed]
php5-common-5.6.37-r0 x86_64 {php5} (PHP-3.0) [installed]
This problem doesn’t seem to happen in the current edge version.
(from redmine: issue id 9237, created on 2018-08-13, closed on 2018-08-13)
- Relations:
- duplicates #9119 (closed)