How to Install and Uninstall php-cli.x86_64 Package on Rocky Linux 9

Last updated: November 28,2024

1. Install "php-cli.x86_64" package

This tutorial shows how to install php-cli.x86_64 on Rocky Linux 9

$ sudo dnf update $ sudo dnf install php-cli.x86_64

2. Uninstall "php-cli.x86_64" package

Please follow the steps below to uninstall php-cli.x86_64 on Rocky Linux 9:

$ sudo dnf remove php-cli.x86_64 $ sudo dnf autoremove

3. Information about the php-cli.x86_64 package on Rocky Linux 9

Last metadata expiration check: 2:08:48 ago on Fri Feb 16 06:49:52 2024.
Installed Packages
Name : php-cli
Version : 8.3.3
Release : 1.el9.remi
Architecture : x86_64
Size : 24 M
Source : php-8.3.3-1.el9.remi.src.rpm
Repository : @System
From repo : remi-modular
Summary : Command-line interface for PHP
URL : http://www.php.net/
License : PHP-3.01 AND Zend-2.0 AND BSD-2-Clause AND MIT AND Apache-1.0 AND NCSA AND PostgreSQL
Description : The php-cli package contains the command-line interface
: executing PHP scripts, /usr/bin/php, and the CGI interface.