How to Install and Uninstall php8.1-cgi Package on Debian 10 (Buster)

Last updated: December 29,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 10 (Buster)

$ 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 10 (Buster):

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

3. Information about the php8.1-cgi package on Debian 10 (Buster)

Package: php8.1-cgi
Source: php8.1
Version: 8.1.9-1+0~20220815.24+debian10~1.gbp4d5b5a
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 10565
Depends: libmagic1, mime-support, php8.1-cli, php8.1-common (= 8.1.9-1+0~20220815.24+debian10~1.gbp4d5b5a), php8.1-opcache, tzdata, ucf, libargon2-1 (>= 0~20171227), libc6 (>= 2.27), 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+debian10~1.gbp4d5b5a_amd64.deb
Size: 1626088
SHA256: e2dea077f1d66013b10e9ef96d5b023505af789bf456a7e7699b9e7c2d6eb67b
SHA1: 6dd3d149e7694a3c5e73c5132677246beb8c6acb
MD5sum: be223b76b800393143b324c16c22ae86
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