How to install Composer on CentOS 8


Step 1: install curl
yum install -y curl

Step 2: curl -sS https://getcomposer.org/installer | php

Result:

[root@tutorialspots ~]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...

Composer (version 1.10.13) successfully installed to: /root/composer.phar
Use it: php composer.phar

Step 3: mv composer.phar /usr/local/bin/composer

Leave a Reply