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

Last updated: May 13,2024

1. Install "php8.1-cgi" package

Learn how to install php8.1-cgi on Debian 12 (Bookworm)

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

2. Uninstall "php8.1-cgi" package

Please follow the steps below to uninstall php8.1-cgi on Debian 12 (Bookworm):

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

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

Package: php8.1-cgi
Source: php8.1
Version: 8.1.27-1+0~20231221.58+debian12~1.gbp3895b2
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 10643
Depends: libmagic1, media-types | mime-support, php8.1-cli, php8.1-common (= 8.1.27-1+0~20231221.58+debian12~1.gbp3895b2), php8.1-opcache, 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-cgi, php-json, php8.1-json, phpapi-20210902
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php8.1/php8.1-cgi_8.1.27-1+0~20231221.58+debian12~1.gbp3895b2_amd64.deb
Size: 1656996
SHA256: 3fb20af7c0f1e89465916da9ca2a563adab4a9ccab99e891bf6a17fc65a7f562
SHA1: 7916b90126c4b7de0b2d2cc23b2506ff9be1a7c4
MD5sum: 989cd0f76be32b90811e19915735df96
Description: server-side, HTML-embedded scripting language (CGI binary)
This package provides the /usr/lib/cgi-bin/php CGI interpreter built
for use in Apache 2 with mod_actions, or any other CGI httpd that
supports a similar mechanism. Note that MOST users probably
want the php8.1-fpm package.
.
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: d56129a9453d4b8230f1c2dfa0da00a7