How to Install and Uninstall php7.2-cli Package on Debian 11 (Bullseye)

Last updated: November 05,2024

1. Install "php7.2-cli" package

In this section, we are going to explain the necessary steps to install php7.2-cli on Debian 11 (Bullseye)

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

2. Uninstall "php7.2-cli" package

This guide let you learn how to uninstall php7.2-cli on Debian 11 (Bullseye):

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

3. Information about the php7.2-cli package on Debian 11 (Bullseye)

Package: php7.2-cli
Source: php7.2
Version: 7.2.34-32+0~20220627.74+debian11~1.gbpc7fa3c
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 4966
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.41), mime-support, php7.2-common (= 7.2.34-32+0~20220627.74+debian11~1.gbpc7fa3c), php7.2-json, php7.2-opcache, php7.2-readline, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Provides: php-cli, phpapi-20170718
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.2/php7.2-cli_7.2.34-32+0~20220627.74+debian11~1.gbpc7fa3c_amd64.deb
Size: 1440140
SHA256: 5fcc22c72c0b11535512cd157b9896e1137ed6c1923d75940900f9eb2cc1a841
SHA1: 7c66f2b8932d4ef551c3e514e4a147ed5193717f
MD5sum: c99655621ab53a807a75107f77c13316
Description: command-line interpreter for the PHP scripting language
This package provides the /usr/bin/php7.2 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 sodium 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: a7d0565e0b51caaecc1b552461abc0a6