Installing Composer on Ubuntu 14.04 globally

Installing composer requires curl and php installed. If these packages are not installed, the installation will fail.

In my case

php 5.6 :

sudo apt-get install php5.6 php5.6-cli

curl 7.35.0 :

sudo apt-get install curl

Let's start installing the composer itself.

Run the following query in the console :

curl -S https://getcomposer.org/installer | sudo -H php -- --install-dir=/usr/local/bin --filename=composer

-S is a flag to display errors if they occur.

-H is a flag specifying the user's sudo HOME directory.

After the installation is complete, check the version :

composer -V

in my case Composer version 1.6.5 2018-05-04 11:44:59

More detailed information here .

601 0

Comments

Be the first to review this item. Share your rating and review so that other customers can decide if this is the right item for them.
You have to log in to leave a comment. Sign in

Similar articles