Update composer Ubuntu and Debian-based systems.
#update packages
$sudo apt-get update
#install curl if you don't have it
$ sudo apt-get install curl
#download composer installer
$ sudo curl -s https://getcomposer.org/installer | php
#move composer.phar file
$ sudo mv composer.phar /usr/local/bin/composer
#check composer version
$composer -v
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.