How to Install and Uninstall php8.1-cli Package on Debian 11 (Bullseye)

Last updated: December 28,2024

1. Install "php8.1-cli" package

This tutorial shows how to install php8.1-cli on Debian 11 (Bullseye)

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

2. Uninstall "php8.1-cli" package

In this section, we are going to explain the necessary steps to uninstall php8.1-cli on Debian 11 (Bullseye):

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

3. Information about the php8.1-cli package on Debian 11 (Bullseye)

Package: php8.1-cli
Source: php8.1
Version: 8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 5445
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, mime-support, php8.1-common (= 8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a), php8.1-opcache, php8.1-readline, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.29), libpcre2-8-0 (>= 10.38), libsodium23 (>= 1.0.18), libssl1.1 (>= 1.1.1), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Provides: php-cli, php-json, php8.1-json, phpapi-20210902
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php8.1/php8.1-cli_8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a_amd64.deb
Size: 1665748
SHA256: aecb92e4166f28f5351821eaa96352fc0df6a381fabed1aa45178d6db07ed679
SHA1: a74098009ca57303ccb0eac0c0bd539c6bbbc1b0
MD5sum: 9e671968dc91317697e4aafc4f4b0df5
Description: command-line interpreter for the PHP scripting language
This package provides the /usr/bin/php8.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 json 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: c4f65cd0d3ec6a1fa6aba7e0fc095fa5