1 (edited by tonyg 2022-01-17 18:49:03)

Topic: [solved]how do i get composer vers 2.x on CentOS 7?

hi, i am currently using remi repos for php 7.4  I have composer installed from epel 1.x but I want to use composer 2.x.  i get the impression that remi has a 2.x version of composer but i cant figure out how to upgrade to it.

thanks in advance for your help!


Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: atl.mirrors.clouvider.net
* epel: iad.mirror.rackspace.com
* extras: centos.vwtonline.net
* remi-php74: mirror.pit.teraswitch.com
* remi-safe: mirror.pit.teraswitch.com
* updates: mirror.nodesdirect.com
repo id                                         repo name                                                                         status
Webmin                                          Webmin Distribution Neutral                                                          203
base/7/x86_64                                   CentOS-7 - Base                                                                   10,072
epel/x86_64                                     Extra Packages for Enterprise Linux 7 - x86_64                                    13,713
extras/7/x86_64                                 CentOS-7 - Extras                                                                    500
mariadb                                         MariaDB                                                                              100
nagios-base                                     Nagios                                                                               100
nagiosxi-deps                                   Nagios XI Dependencies                                                                31
nodesource/x86_64                               Node.js Packages for Enterprise Linux 7 - x86_64                                     121
packages-microsoft-com-prod                     packages-microsoft-com-prod                                                        1,085
remi-php74                                      Remi's PHP 7.4 RPM repository for Enterprise Linux 7 - x86_64                        435
remi-safe                                       Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                         4,684
updates/7/x86_64                                CentOS-7 - Updates                                                                 3,295
repolist: 34,339

Re: [solved]how do i get composer vers 2.x on CentOS 7?

composer v2 is in "remi" repository which is not enabled by default, as it overrides packages from other repository (EPEL in this case)

yum --enablerepo=remi update composer

Much more simpler on C8 or C9 where composer is a module

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by tonyg 2022-01-17 18:49:23)

Re: [solved]how do i get composer vers 2.x on CentOS 7?

Remi wrote:

composer v2 is in "remi" repository which is not enabled by default, as it overrides packages from other repository (EPEL in this case)

yum --enablerepo=remi update composer

Much more simpler on C8 or C9 where composer is a module



Great, that worked...thanks for your help!