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

Last updated: December 25,2024

1. Install "php8.1-cgi" package

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

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

2. Uninstall "php8.1-cgi" package

Please follow the step by step instructions below to uninstall php8.1-cgi on Debian 11 (Bullseye):

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

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

Package: php8.1-cgi
Source: php8.1
Version: 8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 10577
Depends: libmagic1, mime-support, php8.1-cli, php8.1-common (= 8.1.9-1+0~20220815.24+debian11~1.gbp4d5b5a), php8.1-opcache, 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-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.9-1+0~20220815.24+debian11~1.gbp4d5b5a_amd64.deb
Size: 1621928
SHA256: 4a75505265b3dc4fb44cb604f232172681cdfd944652ad80688bc1ca6828ee74
SHA1: be0d679f7e1302a5d61b724bdf97ac06a835f4d9
MD5sum: 6930d70df0454df7c0bd8764e1136988
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