Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active December 17, 2022 13:33
Show Gist options
  • Save DominicWatts/f1a968f7d29a867d567a2e9ebb8a0064 to your computer and use it in GitHub Desktop.
Save DominicWatts/f1a968f7d29a867d567a2e9ebb8a0064 to your computer and use it in GitHub Desktop.
debian install composer specific version
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php composer-setup.php --version=1.10.26 --install-dir=/usr/bin --filename=composer
php -r "unlink('composer-setup.php');"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php composer-setup.php --version=2.4.4 --install-dir=/usr/bin --filename=composer2
php -r "unlink('composer-setup.php');"
composer --version
Composer version 1.10.17 2020-10-30 22:31:58
whereis composer
/usr/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment