1 (edited by robsch 2020-11-02 09:13:04)

Topic: Magento needs composer 1.x

Latest version of Magento 2 requires composer 1.x. Currently, composer 2 is not supported. You can find this information here: https://devdocs.magento.com/guides/v2.4 … l#composer

Could you re-add this version?

Re: Magento needs composer 1.x

You can use the version from EPEL, which is still at 1.x and is maintained (1.10.17 in testing)
https://bodhi.fedoraproject.org/updates … 307b6d311d

In my archives I only have old versions


See yum documentation and exclude/includepkgs directives.


BTW, I have not enough information about what you are running (at least distribution and  version)

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 robsch 2020-11-02 10:45:02)

Re: Magento needs composer 1.x

Thank you for the quick reply!

Sorry: I use CentOS/RHEL 8. The package that you have provided in the link is for version 7, right?

Since the step to composer 2 is a major update, which requires (some) maintainers to update their package, shouldn't version 1 be still available in the Remi repo? Version 1 is EOL, but it is not fully unsupported yet.

Of course, one can install it manually and without the repository.

But if one performs a 'dnf update' things could break if composer 2 gets installed.

Re: Magento needs composer 1.x

For now you can download old versions from
http://rpms.remirepo.net/store/composer/

Will have to think to something simpler
Perhaps I should have created a stream (module) for it, need to think about this

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

Re: Magento needs composer 1.x

Thanks again for considering. I hope you have read my last sentence, which I added later: a 'dnf update' could break composer related things (e.g. deployment pipelines).

Re: Magento needs composer 1.x

After more thinking (and a good lunch), I choose to remove composer from "remi" repository and to provide it as a module (so in "remi-modular")

"dnf install composer" will install latest version from default stream, so v2.0.4

"dnf update" will also enable v2 (even when installed from "remi", before modular changes, would have be a blocker for me if not working)

For people wanting to keep v1

dnf module reset composer
dnf module install composer:1

And, later, to upgrade to v2

dnf module reset composer
dnf module install composer:2

"dnf update" will preserve major version, as module was desinged for.


P.S. of course latest versions (1.10.17 and 2.0.4) are available in their respective stream.

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

Re: Magento needs composer 1.x

Great news! When are you going to do that? And is there anything to do as a user? I don't know enough about repositories and packages. I don't have to reinstall the repository or something similar?

Re: Magento needs composer 1.x

It is already done.

   dnf module reset composer
   dnf module install composer:1

Should be enough (when used mirror will be synced with primary server)


P.S. and announced: https://twitter.com/RemiRepository/stat … 7062340608

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

Re: Magento needs composer 1.x

Ok, got it. Needed to activate baseurl in the remi.repo configuration. If I get it right, the mirrored repositories are not yet updated.

Thank you very much for the quick fix!!

Btw: I don't know why, but the forum message buttons do not work in my Firefox. Console says: "Uncaught ReferenceError: PUNBB is not defined"

Re: Magento needs composer 1.x

smile

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