DEV Community

Cover image for Downgrade composer from 2.x to 1.x via brew
Sascha Eggenberger
Sascha Eggenberger

Posted on • Edited on • Originally published at saschaeggi.Medium

4 2

Downgrade composer from 2.x to 1.x via brew

You just upgraded your brew packages and composer updated itself to version 2.x but you still need version 1.x? This is how you can downgrade (& upgrade again):

Show available versions of composer:

brew log composer

For me the latest 1.x version to date is: composer 1.10.15

Let's downgrade

composer self-update 1.10.15

To switch back to the 2.x version use

composer self-update --rollback

Top comments (2)

Collapse
 
actouf profile image
Julien actouf • Edited

Let's downgrade
composer self-update --1

  --1                        Force an update to the stable channel, but only use 1.x versions
  --2                        Force an update to the stable channel, but only use 2.x versions
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mmanreza profile image
Michael Manreza

This is very helpful. Thank you so much!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay