How to Install and Uninstall php-cli Package on Ubuntu 23.10 (Mantic Minotaur)

Last updated: May 16,2024

1. Install "php-cli" package

This guide let you learn how to install php-cli on Ubuntu 23.10 (Mantic Minotaur)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

In this section, we are going to explain the necessary steps to uninstall php-cli on Ubuntu 23.10 (Mantic Minotaur):

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

3. Information about the php-cli package on Ubuntu 23.10 (Mantic Minotaur)

Package: php-cli
Architecture: all
Version: 2:8.2+93ubuntu1
Priority: optional
Section: php
Source: php-defaults (93ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 21
Depends: php8.2-cli
Filename: pool/main/p/php-defaults/php-cli_8.2+93ubuntu1_all.deb
Size: 4512
MD5sum: 362d46f20dcab69132a75251bc702fad
SHA1: 7738c52faefd1dcf64cf4fc9aed4dc31e7fac066
SHA256: a32cd4a4625ed73ae135d2872468f49985114c892cddb403b7205b294ec270d2
SHA512: 56c315e2cb91f2168e566bc86599058706bfefb173463b6b259e9f8176522d988af1e355193bf6149df509e6f4d288afcea015468ec3659d333e8da443344a7f
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 6f30e40c8745c67268f9b635e91e8eb4