Actualización del compositor
composer self-update
Attractive Ant
composer self-update
composer self-update
If going from version 1 to 2 use composer self-update --2
run which composer (output /usr/bin/composer)
run php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
run sudo php composer-setup.php --install-dir=/usr/bin --filename=composer
composer self-update --1
composer self-update --2
composer self-update --rollback
php composer.phar update