How to Install and Uninstall php7.0-cli Package on Debian 12 (Bookworm)

Last updated: May 17,2024

1. Install "php7.0-cli" package

Please follow the instructions below to install php7.0-cli on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php7.0-cli

2. Uninstall "php7.0-cli" package

This is a short guide on how to uninstall php7.0-cli on Debian 12 (Bookworm):

$ sudo apt remove php7.0-cli $ sudo apt autoclean && sudo apt autoremove

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

Package: php7.0-cli
Source: php7.0
Version: 7.0.33-68+0~20230905.83+debian12~1.gbp571a08
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 4384
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.41), media-types | mime-support, php7.0-common (= 7.0.33-68+0~20230905.83+debian12~1.gbp571a08), php7.0-json, php7.0-opcache, php7.0-readline, tzdata, ucf, libc6 (>= 2.35), libssl3 (>= 3.0.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Provides: php-cli, phpapi-20151012
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.0/php7.0-cli_7.0.33-68+0~20230905.83+debian12~1.gbp571a08_amd64.deb
Size: 1322948
SHA256: 4dbf12d0f47ddd5eb4a9e4de411a59c9fa2be903105ee1bafbefe938d8816971
SHA1: d8aa8a5206930fa0ae516bb57200bb43b61f7960
MD5sum: 4344cb85fe017fab4cc0a33052838ff9
Description: command-line interpreter for the PHP scripting language
This package provides the /usr/bin/php7.0 command interpreter, useful for
testing PHP scripts from a shell or performing general shell scripting tasks.
.
The following extensions are built in: Core date filter hash libxml openssl
pcntl pcre Reflection session SPL standard zlib.
.
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.
Description-md5: 22825d1d78d475175fcb3e2f13054b4d