Ralph,
Hmmm… yeah, there it is again. I had originally installed composer via yum, then:
# which composer
/usr/local/bin/composer
# composer --version
Composer version 1.10.22 2021-04-27 13:10:45
But if I look for all the composer binaries, as below, I see several are installed in egroupware/vendor/… When I run the one in vendor/sebastian/type/tools/composer is see that it’s 2.0.2.
# /var/www/egroupware/vendor/sebastian/type/tools/composer --version
Composer version 2.0.2 2020-10-25 23:03:59
More importantly, the one called in install-cli.php is /usr/bin/composer, which turns out is also 2.x
$bins = array(
'composer' => ['/usr/bin/composer', '/usr/bin/composer.phar'],
So I symlinked that to /usr/local/bin/composer. No more “PEAR repository has been removed from Composer 2.0” error, but I still get some others, so I’ll go back to beginning again. (Tho I now have a running system, I’d like to close the loop here and give you feedback on what exactly tripped me up.)
Thanks again!
All composer binaries:
# find / -name composer -exec file {} \;
find: ‘/run/user/1000/gvfs’: Permission denied
/root/.cache/composer: directory
/root/.config/composer: directory
/root/.local/share/composer: directory
/usr/bin/composer: Ruby script, ASCII text
/usr/local/bin/composer: a /usr/bin/env php script executable (binary data)
/usr/share/doc/composer: directory
/usr/share/licenses/composer: directory
/usr/share/composer: directory
/var/www/egroupware/vendor/composer: directory
/var/www/egroupware/vendor/egroupware/z-push-dev/src/vendor/composer: directory
/var/www/egroupware/vendor/sebastian/type/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/recursion-context/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/object-reflector/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/object-enumerator/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/global-state/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/exporter/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/environment/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/diff/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/comparator/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/code-unit/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/cli-parser/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/lines-of-code/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/complexity/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/sebastian/code-unit-reverse-lookup/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/phpunit/php-timer/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/phpunit/php-text-template/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/phpunit/php-invoker/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/phpunit/php-file-iterator/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/phpunit/php-code-coverage/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/vendor/phpunit/phpunit/tools/composer: a /usr/bin/env php script executable (binary data)
/var/www/egroupware/swoolepush/vendor/composer: directory