Home  »  CodeLibrariesProgrammingSnippetsTechnologyTools   »   How to Update Composer in Ubuntu | Debian Systems

How to Update Composer in Ubuntu | Debian Systems

Posted: March 9, 2022 | by Site Host

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.

Share it!

See also  How to Read a File in Python