How to Install and Uninstall php7.2-cli Package on Ubuntu 21.10 (Impish Indri)

Last updated: December 27,2024

1. Install "php7.2-cli" package

Please follow the guidance below to install php7.2-cli on Ubuntu 21.10 (Impish Indri)

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

2. Uninstall "php7.2-cli" package

Here is a brief guide to show you how to uninstall php7.2-cli on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php7.2-cli package on Ubuntu 21.10 (Impish Indri)

Package: php7.2-cli
Source: php7.2
Priority: optional
Section: php
Installed-Size: 5006
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 7.2.34-28+ubuntu21.10.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cli, phpapi-20170718
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.35), mime-support, php7.2-common (= 7.2.34-28+ubuntu21.10.1+deb.sury.org+1), php7.2-json, php7.2-opcache, php7.2-readline, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.34), libsodium23 (>= 1.0.14), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.2/php7.2-cli_7.2.34-28+ubuntu21.10.1+deb.sury.org+1_amd64.deb
Size: 1588870
MD5sum: 7e534d791632ef20227a2049fe3226a6
SHA1: 8efff4239e96a1ea6c5ed3ab52a86ecdbb8fb30d
SHA256: 840f1a87810e7ddbc708b43e841f26f55d1479fad81f80826c979ff544b72bb5
Description-en: 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