Skip to content Skip to sidebar Skip to footer

How to Install Composer on RHEL 8

Hi, nice to meet you again, what's wrong with you guys straying into my article? Are you confused about installing composer? If so, you are right and can follow this article to the end. Because I made a tutorial to install composer on RHEL 8.

To install composer you must already have PHP installed on your server. Here I use PHP 7.4 which is already installed on my own server.

Check Version PHP
Check Version PHP

The installation method is quite simple, it only takes a few steps.

Preparation

To get started you need to download the composer installer how to:

$ sudo wget https://getcomposer.org/installer -O composer-installer.php
wget installer composer
wget installer composer

Installing

Once downloaded, you just have to install it by:

$ sudo php composer-installer.php --filename=composer --install-dir=/usr/bin

Installing Composer
Installing Composer

Pretty easy isn't it? So that's how it is for installation.

Trying

You can check whether composer is installed on the server by checking the version. 

$ composer -V

Check Version Composer
Check Version Composer

For the actual use that is used for the application, you have to go to the application directory itself, then you type the install command for the first time to make the application and update When the application is running and requires an update.
$ composer install
$ composer update

Maybe that's all I can share with my friends, if you have any questions you can contact me, thank you.

Bangkit Ade Saputra
Bangkit Ade Saputra Hard-working professional with experience and a proven knowledge of operating system, server architecture and system configuration.

Post a Comment for "How to Install Composer on RHEL 8"