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

Last updated: May 20,2024

1. Install "php7.1-cli" package

This is a short guide on how to install php7.1-cli on Debian 12 (Bookworm)

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

2. Uninstall "php7.1-cli" package

Please follow the instructions below to uninstall php7.1-cli on Debian 12 (Bookworm):

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

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

Package: php7.1-cli
Source: php7.1
Version: 7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 4541
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, libpcre3 (>= 2:8.41), media-types | mime-support, php7.1-common (= 7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3), php7.1-json, php7.1-opcache, php7.1-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-20160303
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php7.1/php7.1-cli_7.1.33-56+0~20230904.88+debian12~1.gbp4cb5d3_amd64.deb
Size: 1368436
SHA256: 02873d36b4f997981574297a88fda6b185307709b67ee255fad26e6eb2434ca2
SHA1: 86fcfb01980f1ed58538b8834439e3727d1f2739
MD5sum: 3100493765aecdd950458c7d48b4d28b
Description: command-line interpreter for the PHP scripting language
This package provides the /usr/bin/php7.1 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: f2b967ba041836b6c91fe5a24786badb