How to Install and Uninstall php-cli Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 19,2024

1. Install "php-cli" package

Please follow the guidance below to install php-cli on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

Please follow the step by step instructions below to uninstall php-cli on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the php-cli package on Ubuntu 24.04 LTS (Noble Numbat)

Package: php-cli
Architecture: all
Version: 2:8.3+93ubuntu2
Priority: optional
Section: php
Source: php-defaults (93ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 22
Depends: php8.3-cli
Filename: pool/main/p/php-defaults/php-cli_8.3+93ubuntu2_all.deb
Size: 4584
MD5sum: 7ec10d44eef3c056e9bd4e068cad0be4
SHA1: 2fb18324e875798f61ff23032fb7d8fa50d8a44a
SHA256: bf4be1fbc1e8e931878c1ea70bb8a996cd8dd3d202ce171ec7b219c197b52d02
SHA512: 4f4b950bd125529c69000b2f21ef19525073b8191179e6ee3f3ddb0cefe3b23bcbf64fb8178b5016d707f5a31b99b6753cc1c5726c382b22b71ad3c444c4d3fb
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 4eafe3357c185a17703749eb4c986140