how to update compsoe r in linux code example Example 1: update packages composer global composer global update Example 2: composer update php composer.phar update