install composer ubuntu last update code example
Example 1: update composer ubuntu
sudo apt-get update
sudo apt-get install curl
sudo curl -s https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer -v
Example 2: how to upgrade composer ubuntu
you need to first remove the composer
->sudo apt-get remove composer
and then type the below command to install composer globally
->sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
for more info :
click on the link below