How to install composer on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Dependency Manager for PHP
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | noarch | Version |
|---|---|---|---|
| RHEL 10 | Base | 2.10.3 | |
| RHEL 9 | Base | 2.10.3 | |
| RHEL 7 | Base | 1.10.27 |
Description
Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere. Documentation: https://getcomposer.org/doc/
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
Base
RHEL 7, 9, 10
composer on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 9, 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install composer
composer on CentOS 7 / RHEL 7
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm sudo yum -y install composer
Package downloads require an active GetPageSpeed subscription — one repository for composer and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install composer on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the composer package with your system package manager.
Which Enterprise Linux versions is composer available for?
composer is available for RHEL 7, 9, 10.