Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to install composer in Ubuntu or Linux machine

To install Composer on your Ubuntu or Linux system, perform the following steps:
1. Check if you have PHP installed and configured properly. If not then please follow this arcticle to do so: https://www.devopsschool.com/blog/how-to-link-php-from-xampp-installation-to-use-php-command-from-user-or-any-other-directory-in-ubuntu-or-linux/
2. Update Ubuntu OS packages by running the command: sudo apt-get update

3. Install Composer: curl -sS https://getcomposer.org/installer |php

4. Let’s check if composer is accessible: composer

5. Let’s make the installed composer accessible, run: sudo mv composer.phar /usr/local/bin/composer

6. Verify the installation:
composer --version
composer

Thanks for reading. I hope you enjoyed the article.

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.