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

Last updated: January 11,2025

1. Install "php8.1-cli" package

This guide let you learn how to install php8.1-cli on Debian 12 (Bookworm)

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

2. Uninstall "php8.1-cli" package

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

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

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

Package: php8.1-cli
Source: php8.1
Version: 8.1.27-1+0~20231221.58+debian12~1.gbp3895b2
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 5481
Depends: libedit2 (>= 2.11-20080614-4), libmagic1, media-types | mime-support, php8.1-common (= 8.1.27-1+0~20231221.58+debian12~1.gbp3895b2), php8.1-opcache, php8.1-readline, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.35), libpcre2-8-0 (>= 10.32), libsodium23 (>= 1.0.18), libssl3 (>= 3.0.0), 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.27-1+0~20231221.58+debian12~1.gbp3895b2_amd64.deb
Size: 1702408
SHA256: 8a1d8b9e4fe2a7552d693cb666dfa371fb32b663a287d387078f0b37d7a96c2d
SHA1: cf9c77df3e9f3239bf1ec45a2c768b4c385ac6ff
MD5sum: 76b47e7265324fc4738a663ee84c7385
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