Skip to content

Instantly share code, notes, and snippets.

@syammohanmp
Created March 23, 2023 12:45
Show Gist options
  • Save syammohanmp/133cc31364598a374f296fe632c193e5 to your computer and use it in GitHub Desktop.
Save syammohanmp/133cc31364598a374f296fe632c193e5 to your computer and use it in GitHub Desktop.
How to downgrade composer to its lower version.

How to Downgrade Composer to Version 1

With the release of Composer version 2, ServerPilot now provides this version to all servers by default. However, some applications may not be fully compatible with version 2, and so you may need to use version 1 until they address those incompatibilities.

If for any reason you need to downgrade Composer to the latest version 1 release, you can do so by running the following command as root:

sudo composer self-update --1

To prevent ServerPilot from automatically updating its package to version 2 in the future, you can tell the advanced package tool (apt) software to hold our package by running the following command as root:

sudo apt-mark hold sp-composer

When you're ready to use version 2, you can remove the hold on our package with the following command as root:

sudo apt-mark unhold sp-composer

Once the hold has been removed, then ServerPilot will eventually automatically update the composer package again. However, you can manually upgrade it to the latest version 2 release by running the following command as root:

sudo composer self-update --2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment