How to install php-cli in CentOS/RHEL 10 (x86_64)

Command-line interface for PHP

License: PHP-3.01 AND Zend-2.0 AND BSD-2-Clause AND MIT AND Apache-1.0 AND NCSA AND PostgreSQL Vendor: GetPageSpeed LLC http://www.php.net/

Install

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install php-cli

Description

The php-cli package contains the command-line interface executing PHP scripts, /usr/bin/php, and the CGI interface.

Compatibility

This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

RPMs

Package Size Built Changes
php-cli-8.4.27-1.9.el10.gps.x86_64 2.3 MiB 2026-11-12 GetPageSpeed
- Built for GetPageSpeed repositories
php-cli-8.4.27-1.8.el10.gps.x86_64 2.3 MiB 2026-11-07 GetPageSpeed
- Built for GetPageSpeed repositories

Subscribe