How to Install and Uninstall php-cli Package on Ubuntu 22.10 (Kinetic Kudu)

Last updated: January 11,2025

1. Install "php-cli" package

Please follow the guidance below to install php-cli on Ubuntu 22.10 (Kinetic Kudu)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

This tutorial shows how to uninstall php-cli on Ubuntu 22.10 (Kinetic Kudu):

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

3. Information about the php-cli package on Ubuntu 22.10 (Kinetic Kudu)

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