How to Install and Uninstall php-cli Package on Debian 12 (Bookworm)

Last updated: May 14,2024

1. Install "php-cli" package

This guide let you learn how to install php-cli on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php-cli

2. Uninstall "php-cli" package

This guide let you learn how to uninstall php-cli on Debian 12 (Bookworm):

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

3. Information about the php-cli package on Debian 12 (Bookworm)

Package: php-cli
Source: php-defaults (94+0~20240205.51+debian12~1.gbp6faa2e)
Version: 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 21
Depends: php8.3-cli
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-cli_8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb
Size: 4320
SHA256: 36254a894ab5334f4b615d97c9ed6a958bf179ecfbdef402abc79f61dd05a29b
SHA1: 7e471240e8e14e3b92eac9f8d259094747a3b086
MD5sum: 1fd92b86af7c4f18d2b22f764ae6e56d
Description: command-line interpreter for the PHP scripting language (default)
This package provides the /usr/bin/php command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 8.3).
Description-md5: 4eafe3357c185a17703749eb4c986140

Package: php-cli
Source: php-defaults (93)
Version: 2:8.2+93
Installed-Size: 21
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php8.2-cli
Description: command-line interpreter for the PHP scripting language (default)
Description-md5: 6f30e40c8745c67268f9b635e91e8eb4
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-cli_8.2+93_all.deb
Size: 4108
MD5sum: 9410fbd63a4736a31b03d4d035fced74
SHA256: dac7619c999e7c08c1a13f3049d4e0a3643a91e8c5f660caead21ade12da03db