How to Install and Uninstall php-cli Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: May 07,2024

1. Install "php-cli" package

In this section, we are going to explain the necessary steps to install php-cli on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

Please follow the steps below to uninstall php-cli on Ubuntu 22.04 LTS (Jammy Jellyfish):

$ sudo apt remove php-cli $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-cli package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: php-cli
Source: php-defaults (94+ubuntu22.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 25
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu22.04.1+deb.sury.org+2
Depends: php8.3-cli
Filename: pool/main/p/php-defaults/php-cli_8.3+94+ubuntu22.04.1+deb.sury.org+2_all.deb
Size: 7692
MD5sum: ceca2a6a05d87248541cff87ce9d9d4f
SHA1: 1e2e386ea092c02711ae2d5571699f63417a7239
SHA256: de0c4538e6814eff3d407e982b9db4bde0b7dfbfd6a9092b813a90b2ad87dce6
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 4eafe3357c185a17703749eb4c986140

Package: php-cli
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 25
Depends: php8.1-cli
Filename: pool/main/p/php-defaults/php-cli_8.1+92ubuntu1_all.deb
Size: 3234
MD5sum: 5fb3a24fde47119a93697d126ead9e87
SHA1: efa8a5d894ea5736c6140fdb54d4e4d45c94e57b
SHA256: 1dcc3e885ee855e23edf3bda7bcd11bd5c49cee56e71a4f30e2fd766c0fa5275
SHA512: 2c217681a37266599f94e73fbd45ab8d02a063a74e8d520875809f47ce880dc2790bc314633e653f461b212099b5d90518cf02f4675ce9263d7917d3835bd717
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 232467ad58970134c89120381a7f5586